API reference > @kontsedal/olas-core > QuerySubscriptionOptions
QuerySubscriptionOptions type
Options passed to createQuery(ctx, query, opts) to control the subscription (reactive key, enabled-gating). The key thunk reads signals — re-evaluating when they change re-keys the subscription.
A select projection that maps the underlying data shape to a view shape is accepted via a dedicated overload on createQuery rather than this options bag — the overload threads T → U types through cleanly.
Signature:
typescript
type QuerySubscriptionOptions<Args extends readonly unknown[]> = {
key?: () => Args;
enabled?: () => boolean;
keepDataWhileDisabled?: boolean;
};