Databases

September 15, 2018 ยท View on GitHub

Databases are specified with the collection.database configuration property.

collections:
  example_collection:
    database: mongodb

This means multiple databases can be mixed on the same API, and collections can either share the same databases or use different ones.

Options

Databases options are specified with the databases configuration property.

databases:
  memory:
    save: false

Available databases

The available databases are:

  • memory: an in-memory database, for development purpose.
  • mongodb

The default database is memory. To change it, use a default collection.