query method
Filters the set and returns a new RealmResults according to the provided query (with optional arguments).
Only works for sets of RealmObjects or EmbeddedObjects.
For more details about the syntax of the Realm Query Language, refer to the documentation: https://www.mongodb.com/docs/realm/realm-query-language/.
Implementation
RealmResults<T> query(String query, [List<Object?> arguments = const []]) {
final handle = realmCore.querySet(asManaged(), query, arguments);
return RealmResultsInternal.create<T>(handle, realm, _metadata);
}