db.query(aql`
FOR i IN 1..10
INSERT {
LaTeX: CONCAT("A_", i),
_key: i
} IN mynodes-js`
).then(
cursor => {
cursor.all().then(
vals => {
// vals is an array containing the entire query result
console.error(vals);
});
});
Is giving me:
node:internal/process/promises:225
triggerUncaughtException(err, true /* fromPromise */);
^
ArangoError: AQL: syntax error, unexpected end of query string near 'js' at position 6:22 (while parsing)
at new ArangoError (c:\Users\FruitfulApproach\Desktop\Quiver\quiver\node_modules\arangojs\error.js:115:21)
at Object.resolve (c:\Users\FruitfulApproach\Desktop\Quiver\quiver\node_modules\arangojs\connection.js:406:32)
at callback (c:\Users\FruitfulApproach\Desktop\Quiver\quiver\node_modules\arangojs\connection.js:191:26)
at IncomingMessage.<a....
This code:
Is giving me:
which doesn't make any sense.