Deletes one document by a specified document id or filter.
Use this API method when you want to find one document by a specified filter or id and delete it. If many documents are found, only the first one will be deleted.
var client =newCodeMashClient(apiKey, projectId);var service =newCodeMashRepository<Person>(client);awaitservice.DeleteOneAsync( x =>x.Id=="record_id");
Check the information about entities on how your filter parameters are mapped.
import { db } from'codemash';exportasyncfunctiondeleteEmployee(id) {returnawaitdb.deleteRecord('employees', { _id: id });}
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