We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45233da commit 876df2cCopy full SHA for 876df2c
src/collection.ts
@@ -966,8 +966,12 @@ export class Collection<TSchema extends Document = Document> {
966
/**
967
* Find a document and update it in one atomic operation. Requires a write lock for the duration of the operation.
968
*
969
+ * The value of `update` can be either:
970
+ * - UpdateFilter<TSchema> - A document that contains update operator expressions,
971
+ * - Document[] - an aggregation pipeline.
972
+ *
973
* @param filter - The filter used to select the document to update
- * @param update - Update operations to be performed on the document
974
+ * @param update - The modifications to apply
975
* @param options - Optional settings for the command
976
*/
977
async findOneAndUpdate(
0 commit comments