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 {@link Ditto} instance via its store property.

Hierarchy

  • Store

Index

Properties

ditto: Ditto

The {@link Ditto} instance this store belongs to.

Methods

  • 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(): Promise<string[]>
  • Returns the names of all available collections in the store of the related {@link Ditto} instance.

    Returns Promise<string[]>

  • 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