@bzr/bazaar
    Preparing search index...

    Class BazaarContext

    The primary class of the Bazaar JS SDK to help you more easily build web apps with Bazaar.

    Index

    Constructors

    Properties

    collections: CollectionsAPI

    Access to the collections API

    files: FilesAPI

    Access to the files/blob storage API

    permissions: PermissionsAPI

    Access to the permissions API

    Methods

    • Ends this context's subscriptions and lets the server close the owner's DB. Use it when done with a context that doesn't last as long as the page.

      Returns Promise<void>

    • Gets a collection interface (API access to the specified collection)

      Type Parameters

      Parameters

      • collectionName: string

        The name of the collection to create the interface for.

      • OptionalcollectionOptions: CollectionOptions

        An optional object for specifying an onCreate hook. The onCreate hook sets up a collection when it is created (e.g., to set up permissions)

      Returns CollectionAPI<T>