insertDocument static method

Future insertDocument({
  1. required String collectionName,
  2. required String databaseName,
  3. required Map<String, Object?> data,
})

Implementation

static Future insertDocument({
  required String collectionName,
  required String databaseName,
  required Map<String, Object?> data,
}) async {
  return await FlutterMongoStitchPlatform.instance.insertDocument(
    collectionName: collectionName,
    databaseName: databaseName,
    data: data,
  );
}