The Magek configuration object
The name of the read model type
The ID of the read model to fetch
OptionalsequenceKey: SequenceKeyThe sequence key for sequenced read models (optional)
A promise that resolves to an array of read models, or undefined if not found
Searches for read models based on specific parameters This method signature matches the original provider library interface
The Magek configuration object
The name of the read model type
The filters to be applied during the search
OptionalsortBy: SortFor<unknown>An object that specifies how the results should be sorted (optional)
Optionallimit: numberThe maximum number of results to return (optional)
OptionalafterCursor: unknownA cursor that specifies the position after which results should be returned (optional)
OptionalpaginatedVersion: booleanA boolean value that indicates whether the results should be paginated (optional)
Optionalselect: ProjectionFor<TReadModel>An object that specifies fields to be returned, including calculated field dependencies (optional)
A promise that resolves to an array of read models or a ReadModelListResult
Stores or updates a read model
The Magek configuration object
The name of the read model type
The read model envelope to store
A promise that resolves to the stored read model envelope
Deletes a read model by its ID
The Magek configuration object
The name of the read model type
The ID of the read model to delete
A promise that resolves when the read model has been deleted
Converts raw read model data into ReadModelStoreEnvelope objects
The Magek configuration object
The raw read model data to be converted
A promise that resolves to an array of ReadModelStoreEnvelope objects
OptionalhealthHealth check methods for the read model store
Check if the read model store is up and running
Get detailed health information about the read model store
Get the URLs/endpoints of the read model store
Fetches a read model by its ID