query method

RealmResults<T> query(
  1. String query, [
  2. List<Object?> arguments = const []
])

Filters the list and returns a new RealmResults according to the provided query (with optional arguments).

Only works for lists 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.queryList(asManaged(), query, arguments);
  return RealmResultsInternal.create<T>(handle, realm, _metadata);
}