interface QueryOptions {
    cursor?: Cursor;
    pageDirection?: waku.waku_store.PageDirection;
    pageSize?: number;
    timeFilter?: waku.waku_store.TimeFilter;
}

Properties

cursor?: Cursor

Cursor as an index to start a query from. The cursor index will be exclusive (i.e. the message at the cursor index will not be included in the result). If undefined, the query will start from the beginning or end of the history, depending on the page direction.

pageDirection?: waku.waku_store.PageDirection

The direction in which pages are retrieved:

Note: This does not affect the ordering of messages with the page (the oldest message is always first).

Default

{ @link PageDirection.BACKWARD }
pageSize?: number

The number of message per page.

Default

{ @link DefaultPageSize }

Retrieve messages with a timestamp within the provided values.

Generated using TypeDoc