Type Alias ShardQueryFunction<Item, EntityToken, M, HashKey, RangeKey, T>

ShardQueryFunction<Item, EntityToken, M, HashKey, RangeKey, T>: ((hashKey: string, pageKey?: Partial<Pick<Item, PropertiesOfType<Item, T[keyof T]>>>, pageSize?: number) => Promise<ShardQueryResult<Item, EntityToken, M, HashKey, RangeKey, T>>)

A query function that returns a single page of results from an individual shard. This function will typically be composed dynamically to express a specific query index & logic. The arguments to this function will be provided by the EntityManager.query method, which assembles many returned pages queried across multiple shards into a single query result.

Type Parameters

Type declaration