Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_StaticEVENT_Event name triggered when the property value changes.
StaticEVENT_Event name triggered when the property is deleted.
StaticTYPEType identifier for the property registry.
Protected_Protected_Optionalfilters: Filter[]Applies an anonymous function to each item in the collection. Fetches fully instantiated model class instances from the database if not hydrated.
The anonymous callback function to apply to each item.
A promise resolving to the results of the callback applications.
Calculates the average of the numeric values of a property across items in the collection. Delegates to database query if not hydrated.
The name of the property to average.
A promise resolving to the average of all numeric values.
Creates a deep clone of the current property instance, preserving its prototype chain.
A new independent instance of the property.
Returns the count of items in the collection, optionally filtered by a predicate callback. If no predicate is provided and the collection is not hydrated, it runs a fast database query.
Optionalpredicate: (item: any) => booleanAn optional filter callback to run on each item.
A promise resolving to the count of matching items.
Retrieves all distinct values of a property across the collection items. Delegates to database query if not hydrated.
The name of the property.
A promise resolving to an array of unique property values.
Constructs or retrieves the backend query builder for this collection. This allows chaining further database conditions before execution.
Optional array of filters to apply to the collection query.
A Query object ready to be executed against the backend.
Groups the collection items by the values of a specific property. Fetches and hydrates the collection first if not already hydrated.
The name of the property to group by.
A promise resolving to a dictionary object.
Returns the maximum value of a numeric property across the collection items. Delegates to database query if not hydrated.
The name of the property.
A promise resolving to the maximum numeric value found, or undefined.
Returns the minimum value of a numeric property across the collection items. Delegates to database query if not hydrated.
The name of the property.
A promise resolving to the minimum numeric value found, or undefined.
Plucks a specific property from each item in the collection. Fetches and hydrates the collection first if not already hydrated.
The name of the property to extract.
A promise resolving to an array containing the extracted property values.
Overrides the default set method. Normally, a backend collection's value is retrieved dynamically via queries, but it can be manually hydrated.
The array of objects or URIs to set.
Whether to mark the property as modified.
The property instance for chaining.
Sums the numeric values of a property across items in the collection. Delegates to database query if not hydrated.
The name of the property to sum.
A promise resolving to the sum of all numeric values.
Serializes the current explicitly set value of the collection. Note: This does not trigger a database fetch.
The raw internal value array.
Executes the backend query and resolves the collection of related objects.
The format in which the results should be returned (e.g. AS_DATAOBJECTS).
A promise resolving to the query result containing the objects.
A specialized backend property that represents a one-to-many or many-to-many relationship. Unlike the core
CollectionProperty, this property acts as a dynamic query builder, fetching relatedPersistedBaseObjectinstances directly from the database when accessed.Example