find method

Future<List<RecordSnapshot<K, V>>> find(
  1. DatabaseClient databaseClient, {
  2. Finder? finder,
})

Find multiple records.

Returns an empty array if none found.

Implementation

Future<List<RecordSnapshot<K, V>>> find(
  DatabaseClient databaseClient, {
  Finder? finder,
}) async {
  var records = await findImmutableRecords(
    databaseClient,
    finder: finder as SembastFinder?,
  );
  return immutableRecordIterableToSnapshots(records);
}