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