API to query an index.

Hierarchy

  • LocalIndexApi

Implements

  • IndexApi

Constructors

Properties

enabled: boolean

Methods

  • Parameters

    • modelsNoLongerIndexed: ModelData[]
    • modelData: ModelData
    • loading: LoadingInterfaceImplements = {}

    Returns Promise<IndexModelArgs>

  • Query the index. Ask an indexing database for a list of StreamIDs, and convert them to corresponding StreamState instances via Repository::streamState.

    We assume that a state store always contains StreamState for an indexed stream, but we return null iff it's not to avoid throwing errors at DApps

    Parameters

    • query: PaginationQuery

    Returns Promise<Page<null | StreamState<StreamMetadata>>>