Browse Source

add arangodb integration

gh-pages
sovlookup 6 years ago
parent
commit
1b6eb426c6
  1. 6
      packages/server/src/integrations/arangodb.js

6
packages/server/src/integrations/arangodb.js

@ -1,7 +1,5 @@
const arangojs = require("arangojs") const { Database, aql } = require("arangojs")
const { FIELD_TYPES, QUERY_TYPES } = require("./Integration") const { FIELD_TYPES, QUERY_TYPES } = require("./Integration")
// const arangodb = arangojs.Database
const aql = arangojs.aql
const SCHEMA = { const SCHEMA = {
docs: "https://github.com/arangodb/arangojs", docs: "https://github.com/arangodb/arangojs",
@ -48,7 +46,7 @@ class ArangoDBIntegration {
} }
this.config = config this.config = config
this.client = arangojs.arangojs(config) this.client = new Database(config)
} }
async read(query) { async read(query) {

Loading…
Cancel
Save