3

It seems the options to create a graph within Arangodb are:

  1. The Web Interface
  2. Arangosh using the general-graph module
  3. The provided drivers using the object based API
  4. The HTTP API

Is it possible to create the necessary components to build a graph using AQL???

For background, I am trying to assess options for bootstrapping graphs in different environments and potentially performing migrations in production environments.

1 Answer 1

4

No, at the moment AQL is only a DML (data manipulation language), but no DDL (data definition language). To create a graph, please use one of the other methods you listed.

Sign up to request clarification or add additional context in comments.

2 Comments

many thanks, we would like to create graphs in our database on "startup", potentially from csv files. Is arangosh able to read in files using something like 'fs' or would we be better using the npm module to load the data from the filesystem and create node based scripts to bootstrap our graphs? thanks!
arangosh can do it in general, though it will not be as flexible as using node.js with all of its available modules/tools. For file handling in arangosh, there are require("fs").readFileSync() and require("internal").processCsvFile(), but if they are not flexible enough for your demands, it may be better to fall back to a general solution that employs node.js to do the file processing and data loading.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.