Comparing version 1.2.0 to 1.3.0
{ | ||
"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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59811
977
505