[DOCS-12671] Docs for SERVER-40397: Add the ability to specify a pipeline to the findAndModify command Created: 01/May/19  Updated: 13/Nov/23  Resolved: 04/Jun/19

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.1.11, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-40397 Add the ability to specify a pipeline... Closed
Related
is related to DOCS-12675 Docs for SERVER-40429: Add $merge sta... Closed
Participants:
Days since reply: 4 years, 36 weeks, 1 day ago
Epic Link: DOCS: 4.2 Server/Tools

 Description   

Description

Description:

Adds the ability to specify a pipeline to the findAndModify update parameter.

Engineering Ticket Description:

The new syntax will look like this:

{
  findAndModify: <collection-name>,
  query: <document>,
  sort: <document>,
  remove: <boolean>,
  update: <document OR pipeline>,
  new: <boolean>,
  fields: <document>,
  upsert: <boolean>,
  bypassDocumentValidation: <boolean>,
  writeConcern: <document>,
  collation: <document>,
  arrayFilters: <array>
}

The only supported stages in a pipeline will be single-document transformations: $addFields, $project, and $replaceRoot. For this ticket, we will not support options such as collation, bypassDocumentValidation, upsert, sort, and fields. Those options will be tracked by separate work items. We will never support arrayFilters in the pipeline-style update.

*note* : per DOCS-12724 – it is available with*OUT* feature flag.

Scope of changes

  • findAndModify command and helper
  • findOneAndUpdate helper

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Kay Kim (Inactive) [ 04/Jun/19 ]

Wrong ticket number:

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-12749: findAndModify takes agg stages
Branch: master
https://github.com/mongodb/docs/commit/578771a5d0901b3345d1949ed1d58d8113a25a31

Should be DOCS-12671

Generated at Thu Feb 08 08:05:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.