Protected_Protected_Array of instantiated Filter objects defining the query conditions.
Pagination rules defining limits, batches, and offsets.
Execution metadata populated by the backend after fetching (e.g. total count, execution time).
Array of Sorting conditions dictating the order of returned results.
Executes an average aggregation query on the target property.
The name of the numeric property to average.
The backend adapter to query against. Defaults to the global default backend.
A promise resolving to the average of the property values.
Executes a count aggregation query.
The backend adapter to query against. Defaults to the global default backend.
A promise resolving to the count of matching items.
Executes a distinct aggregation query on the target property.
The name of the property.
The backend adapter to query against. Defaults to the global default backend.
A promise resolving to an array of unique values.
Primary execution handler for the query. Transforms the output based on the requested returnAs format.
The desired output format (AS_DATAOBJECTS, AS_OBJECTURIS, or AS_INSTANCES).
The backend adapter to query against.
A promise resolving to the query results in the specified format.
Internal: Executes the query against the backend and returns raw DataObjectClass wrappers.
The backend adapter to query against. Defaults to the global default backend.
A promise resolving to the raw DataObject results and execution metadata.
Executes the query and fully hydrates the results into instances of the target class. This is the standard data retrieval path for applications.
The backend adapter to query against.
A promise resolving to an array of fully instantiated model classes.
Executes the query and returns only the ObjectUri references of the matching records.
Efficient for relational operations where full object hydration is unnecessary.
The backend adapter to query against.
A promise resolving to an array of URIs.
Executes a maximum aggregation query on the target property.
The name of the property.
The backend adapter to query against. Defaults to the global default backend.
A promise resolving to the maximum value found, or undefined.
Executes a minimum aggregation query on the target property.
The name of the property.
The backend adapter to query against. Defaults to the global default backend.
A promise resolving to the minimum value found, or undefined.
Updates the parent property of the current object. This method is useful for SQL backends where a model may have two parent records and requires dynamically setting the name of one of them.
Executes a sum aggregation query on the target property.
The name of the numeric property to sum.
The backend adapter to query against. Defaults to the global default backend.
A promise resolving to the sum of the property values.
Appends a new filter condition to the query.
Can accept an instantiated Filter object or raw field parameters.
The Filter object or the string name of the field to filter on.
The value to match (ignored if param is a Filter).
The OperatorKeys comparison operator (e.g., equals, gt, lt). Defaults to equals.
The query instance for chaining.
A fluent interface for building and executing database queries across all backend adapters. Manages filters, sort orders, and pagination limits dynamically.
Example