new GraphDb()
Members
-
static graph
-
The underlying graph object. Used for testing and should not be used programmatically since this Object may change.
Methods
-
async, static init() → {Promise}
-
Initialize the connection to the Graph Database. Uses Config values to specify the connection host, port, and options.
Returns:
Promise -A Promise that resolves when initialization is complete.
-
async, static query(queryStr) → {Object}
-
Raw query to the database
Parameters:
Name Type Description queryStr
string A Cipher query string
-
async, static shutdown() → {Promise}
-
Shutdown the connection to the Graph Database
Returns:
Promise -A Promise that resolves when shutdown is complete.
-
async, static wipe() → {Promise}
-
Resets the Graph Database, destroying all data. Primarily used for testing.
Returns:
Promise -A Promise that resolves when all data has been deleted.