Computer scienceFundamentalsSQL and DatabasesDBMSMongoDBOperations and operators

Bulkwrite operations in MongoDB

Testing

Report a typo

Some car dealer has a collection named cars. They want to check if the records could be successfully added to this collection. To do this, they need to write a request using bulkWrite() that creates a test record and then deletes it. Help the car dealer to write this request.

The test data is the following:

{
  _id: 1,
  manufacturer: "BMW",
  model: "X7",
  price: 50000
}

To delete the record, use the _id field.

Enter a short text
___

Create a free account to access the full topic