query method

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

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