时间:2021-07-01 10:21:17 帮助过:14人阅读
For examples, see Insert Documents.
Read operations retrieves documents from a collection; i.e. queries a collection for documents. MongoDB provides the following methods to read documents from a collection:
You can specify query filters or criteria that identify the documents to return.
For examples, see Query Documents.
Update operations modify existing documents in a collection. MongoDB provides the following methods to update documents of a collection:
In MongoDB, update operations target a single collection. All write operations in MongoDB are atomic on the level of a single document.
You can specify criteria, or filters, that identify the documents to update. These filters use the same syntax as read operations.
For examples, see Update Documents.
Delete operations remove documents from a collection. MongoDB provides the following methods to delete documents of a collection:
In MongoDB, delete operations target a single collection. All write operations in MongoDB are atomic on the level of a single document.
You can specify criteria, or filters, that identify the documents to remove. These filters use the same syntax as read operations.
For examples, see Delete Documents.
MongoDB provides the ability to perform write operations in bulk. For details, see Bulk Write Operations.
MongoDB - MongoDB CRUD Operations
标签:documents evel get mat ref nts oss nal https