LoadSubsetOptions

Type Alias: LoadSubsetOptions

ts
type LoadSubsetOptions = object;
type LoadSubsetOptions = object;

Defined in: packages/db/src/types.ts:206

Properties

limit?

ts
optional limit: number;
optional limit: number;

Defined in: packages/db/src/types.ts:212

The limit of the data to load


orderBy?

ts
optional orderBy: OrderBy;
optional orderBy: OrderBy;

Defined in: packages/db/src/types.ts:210

The order by clause to sort the data


subscription?

ts
optional subscription: Subscription;
optional subscription: Subscription;

Defined in: packages/db/src/types.ts:221

The subscription that triggered the load. Advanced sync implementations can use this for:

  • LRU caching keyed by subscription
  • Reference counting to track active subscriptions
  • Subscribing to subscription events (e.g., finalization/unsubscribe)

Optional

Available when called from CollectionSubscription, may be undefined for direct calls


where?

ts
optional where: BasicExpression<boolean>;
optional where: BasicExpression<boolean>;

Defined in: packages/db/src/types.ts:208

The where expression to filter the data

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.