Skip to main content

IDataStoreORM.dataStoreORMGetMessagesCount() method

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Returns a count of IMessages that match the given filter. These are messages that were stored using dataStoreSaveMessage.

Signature:

dataStoreORMGetMessagesCount(args: FindMessagesArgs, context: AuthorizedDIDContext): Promise<number>;

Parameters

ParameterTypeDescription
argsFindMessagesArgsThe filter to apply when querying.
contextAuthorizedDIDContext

Can be used to signal that only a particular DID is authorized to perform this operation. This will cause the result to only contain data that this DID should be able to access.

This API may change without a BREAKING CHANGE notice.

Returns:

Promise<number>