The number of objects in the results.
Query used to filter results.
- arg optional repeatable
Each subsequent argument is used by the placeholders (e.g.
$2, …) in the query.
If the query or any other argument passed into this method is invalid.
The property name(s) to sort results by.
- reverse optional
May only be provided if
descriptoris a string.
If a specified property does not exist.
Returns new results that are filtered by the provided query.
let merlots = wines.filtered('varietal == "Merlot" && vintage <= $0', maxYear);
Realm.Resultsfiltered according to the provided query.
Create a frozen snapshot of the results. This means changes to the list will not be
reflected in the results returned by this method. However, deleted objects will become
null at their respective indices.
Realm.Resultswhich will not live update.
Returns new results that are sorted by the provided property (or properties) of each object.
Realm.Resultssorted according to the arguments passed in
The sort descriptors may either just be a string representing the property name, or an
array with two items: