David Berg
David Berg

Reputation: 2058

ArangoDB: What is the best way to load a scheme into a new database?

When starting a new instance of ArangoDB, what is the best way to load in a database scheme?

I would like to define collections and indexes in a file, and then feed it to Arango somehow.

Upvotes: 4

Views: 315

Answers (1)

Simon Grätzer
Simon Grätzer

Reputation: 286

You can use the option --javascript.execute to run a javascript file in the arango shell. https://docs.arangodb.com/3.11/components/tools/arangodb-shell/options/#--javascriptexecute

There is also a schema evolution tool that is based on XML: https://github.com/deusdat/migrantverde (deprecated)
Replaced by:
https://github.com/deusdat/arangomigo

Upvotes: 5

Related Questions