arangolize
Advanced tools
Comparing version 0.9.6 to 0.9.7
@@ -96,3 +96,3 @@ "use strict"; | ||
} else { | ||
query(`let doc = MERGE(instance, { @includeAs: DOCUMENT(instance[@includeAs]) })`); | ||
query(`\nlet doc = MERGE(instance, { @includeAs: DOCUMENT(instance[@includeAs]) })`); | ||
bindVars({ | ||
@@ -99,0 +99,0 @@ 'includeAs': include.as |
@@ -76,3 +76,3 @@ import { autobind } from 'core-decorators' | ||
} else { | ||
query(`let doc = MERGE(instance, { @includeAs: DOCUMENT(instance[@includeAs]) })`) | ||
query(`\nlet doc = MERGE(instance, { @includeAs: DOCUMENT(instance[@includeAs]) })`) | ||
bindVars({'includeAs': include.as}) | ||
@@ -79,0 +79,0 @@ |
@@ -44,1 +44,20 @@ import test from 'tape' | ||
}) | ||
/**/ | ||
test('complex query', async (t) => { | ||
const { bindVars, query } = await arangolize({ | ||
limit: 5, | ||
skip: 0, | ||
sort: 'createdAt DESC', | ||
include: { | ||
as: 'creator', | ||
where: {name: 'noah'} | ||
} | ||
}) | ||
console.log('query', query) | ||
t.ok(bindVars, 'should have bindVars') | ||
t.ok(query, 'should have query') | ||
t.end() | ||
}) |
{ | ||
"name": "arangolize", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"description": "Sequelize-like query-builder for ArangoDB", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
91842
360