Socket
Socket
Sign inDemoInstall

aqb

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aqb - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

2

package.json
{
"name": "aqb",
"license": "APACHE2_0",
"version": "1.2.0",
"version": "1.3.0",
"description": "ArangoDB AQL query builder.",

@@ -6,0 +6,0 @@ "keywords": [

@@ -100,2 +100,4 @@ # ArangoDB Query Builder

If the value is an *ArangoCollection*, its *name* property will be used instead.
If the value is already an AQL Simple Reference, its value is wrapped instead.

@@ -122,2 +124,9 @@

ArangoDB collection objects can be passed directly:
```js
var myUserCollection = applicationContext.collection('users');
var users = db._query(qb.for('u').in(myUserCollection).return('u')).toArray();
```
### AQL Expressions

@@ -124,0 +133,0 @@

@@ -52,2 +52,5 @@ /* jshint globalstrict: true, es3: true */

if (typeof token === 'object') {
if (Object.prototype.toStrint.call(token) === '[object ArangoCollection]') {
return new Identifier(token.name);
}
if (Object.prototype.toString.call(token) === '[object Array]') {

@@ -54,0 +57,0 @@ return new ListLiteral(token);

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