Optional
config: ConfigAn object with configuration options.
Creates a new Database
instance with its own connection pool.
This is a wrapper function for the new Database.
const db = arangojs("http://127.0.0.1:8529", "myDatabase");
db.useBasicAuth("admin", "hunter2");
Base URL of the ArangoDB server or list of server URLs.
Equivalent to the url
option in Config.
Optional
name: stringGenerated using TypeDoc
Creates a new
Database
instance with its own connection pool.This is a wrapper function for the new Database.
Example