The entrypoint for all actions that relate to data stored by Ditto. Provides access to collections, a write transaction API, and a query hash API.

You don't create one directly but can access it from a particular Ditto instance via its store property.


  • Store


ditto: Ditto

The Ditto instance this store belongs to.


  • Returns the collection for the given name. If the collection doesn't exist yet, it will be created automatically as soon as the first entry is inserted.


    • name: string

    Returns Collection

  • Returns the names of all available collections in the store of the related Ditto instance.

    Returns Promise<string[]>