arangolize
Advanced tools
Comparing version 0.9.4 to 0.9.5
@@ -172,2 +172,6 @@ "use strict"; | ||
if (!include) { | ||
query(`\nreturn ${attributes && !include ? 'KEEP(instance, @attributes)' : 'instance'}\n)`); | ||
} | ||
query` return { | ||
@@ -174,0 +178,0 @@ data: ( |
@@ -127,2 +127,6 @@ import { autobind } from 'core-decorators' | ||
if (!include) { | ||
query(`\nreturn ${attributes && !include ? 'KEEP(instance, @attributes)' : 'instance'}\n)`) | ||
} | ||
query` return { | ||
@@ -129,0 +133,0 @@ data: ( |
@@ -32,1 +32,13 @@ import test from 'tape' | ||
}) | ||
/**/ | ||
test('include attributes', async (t) => { | ||
const { bindVars, query } = await arangolize({ | ||
collection: 'test', | ||
attributes: ['_createdAt'] | ||
}) | ||
t.ok(bindVars, 'should have bindVars') | ||
t.ok(query, 'should have query') | ||
t.end() | ||
}) |
{ | ||
"name": "arangolize", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"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
91394
340