Add logical AND filter over provided filters.
Add a comparison filter with full operator control.
Add contains filter.
Add case-insensitive contains filter.
ProtectedcreateAdd equality filter.
Add fuzzy contains filter.
Add greater-than filter.
Add greater-than-or-equal filter.
Add inclusion filter.
Add includes filter.
Join another collection to the root query.
The left-side field is required. The right-side field is optional when
the joined collection exposes a keyField.
OptionalrightField: Right extends objectAdd less-than filter.
Add less-than-or-equal filter.
Add not-equal filter.
Add logical OR filter over provided filters.
Order results by field
Supports both top-level fields and nested paths using dot notation.
Field name or nested path (e.g., 'name' or 'user.profile.name')
Sort direction ('asc' or 'desc', default: 'asc')
Paginate results by page number and page size
Page number (0-indexed)
Number of results per page (default: 10)
Query builder with offset and limit applied
Subscribe to query results
Establishes a subscription to documents matching the query. The subscription begins immediately and will emit results as they change. Errors thrown in the onUpdate callback are caught and passed to onError if provided.
Called with documents matching the query. Errors thrown here are caught and sent to onError.
OptionalonError: (error: Error) => voidOptional callback for errors. Called with adapter errors, filter evaluation errors, or subscriber callback errors. Non-recoverable: unsubscribe is recommended. To retry, create a new subscription.
Unsubscribe function to clean up subscription and stop receiving updates
Define a reusable CTE subquery
QueryBuilder - fluent API for building JSON-serializable CTEs that can be compiled