Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

  • Store

Index

Properties

Readonly ditto

ditto: Ditto

The Ditto instance this store belongs to.

Methods

collection

  • 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.

    Parameters

    • name: string

    Returns Collection

collectionNames

  • collectionNames(): string[]
  • Returns the names of all available collections in the store of the related Ditto instance.

    Returns string[]

collections

  • collections(): PendingCollectionsOperation
  • Returns an object that lets you fetch or observe the collections in the store.

    Returns PendingCollectionsOperation

    A {@link PendingCollectionsOperation} object that you can use to fetch or observe the collections in the store