Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arangolize

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arangolize

Sequelize-like query-builder for ArangoDB

  • 0.9.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Arangolize

This tool builds find queries in a Sequelize-like way.

Usage

import arangolize from 'arangolize'

const { query, bindVars } = arangolize({
  collection: 'Posts', // collection name
  limit: 10, // limits to 10 results
  skip: 10, // skip the first 10 results
  sort: '_createdAt DESC', // sort by `_createdAt` attribute, descending
  where: { body: 'I ❤️ Arango' }, // find based on keys and values. All must match
  include: [{
    as: 'user' // take the value of field `user` and populate it with the corresponding document
    // `user` field bust be valid ArangoID
  }]
})

// now use the qeury and bindVars as you normally would
collection.query({ query, bindVars })

FAQs

Package last updated on 10 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc