queryCollectionOptions

Function: queryCollectionOptions()

ts
function queryCollectionOptions<TItem, TError, TQueryKey>(config): CollectionConfig<TItem, string | number, StandardSchemaV1<unknown, unknown>, TItem> & object
function queryCollectionOptions<TItem, TError, TQueryKey>(config): CollectionConfig<TItem, string | number, StandardSchemaV1<unknown, unknown>, TItem> & object

Defined in: packages/query-db-collection/src/query.ts:235

Creates query collection options for use with a standard Collection

Type Parameters

TItem extends object

TError = unknown

TQueryKey extends readonly unknown[] = readonly unknown[]

Parameters

config

QueryCollectionConfig<TItem, TError, TQueryKey>

Configuration options for the Query collection

Returns

CollectionConfig<TItem, string | number, StandardSchemaV1<unknown, unknown>, TItem> & object

Collection options with utilities

Our Partners
Electric
Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.