findFirstDocument static method

Future findFirstDocument({
  1. required String collectionName,
  2. required String databaseName,
  3. required dynamic filter,
  4. String? projection,
})

Implementation

static Future findFirstDocument(
    {required String collectionName,
    required String databaseName,
    required dynamic filter,
    String? projection}) async {
  return await FlutterMongoStitchPlatform.instance.findFirstDocument(
    collectionName: collectionName,
    databaseName: databaseName,
    filter: filter,
    projection: projection ?? null,
  );
}