Use bulk insert when you want to insert many records into the database with one API call. This can be useful when you import data from any other sources.
var client =newCodeMashClient(apiKey, projectId);var service =newCodeMashRepository<Person>(client);var person1 =newPerson { Name ="John" };var person2 =newPerson { Name ="Peter" };var entities =newList<Person> { person1, person2 };awaitservice.InsertManyAsync(entities,newDatabaseInsertManyOptions());
Check the information about entities on how your class objects are serialized.
Error with https://760328771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LwSkuCpTNI_AerL8J2a%2Fuploads%2FCpzJktmKXD6FMPSah1nK%2Fopenapi.json?alt=media&token=854cdd6a-61b2-49a5-99f4-6bc091e5c3d6: Failed to convert Swagger 2.0 to OpenAPI 3.0: Operation UpdateManyRequestdbCollectionNamebulk_Update has multiple requestBodies