this commit is ok
This commit is contained in:
parent
136faa243b
commit
faaf4c6a27
|
@ -52,6 +52,7 @@ class ArangoDBIntegration {
|
||||||
async read(query) {
|
async read(query) {
|
||||||
try {
|
try {
|
||||||
const result = await this.client.query(query.sql)
|
const result = await this.client.query(query.sql)
|
||||||
|
let rl = []
|
||||||
return result.forEach(r => rl.push(r))
|
return result.forEach(r => rl.push(r))
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("Error querying arangodb", err.message)
|
console.error("Error querying arangodb", err.message)
|
||||||
|
@ -67,6 +68,7 @@ class ArangoDBIntegration {
|
||||||
const result = await this.client.query(
|
const result = await this.client.query(
|
||||||
aql`INSERT ${query.json} INTO ${clc} LET n = NEW RETURN NEW`
|
aql`INSERT ${query.json} INTO ${clc} LET n = NEW RETURN NEW`
|
||||||
)
|
)
|
||||||
|
let rl = []
|
||||||
return result.forEach(r => rl.push(r))
|
return result.forEach(r => rl.push(r))
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("Error querying arangodb", err.message)
|
console.error("Error querying arangodb", err.message)
|
||||||
|
|
Loading…
Reference in New Issue