[CXX-2399] Support 'let' option for multiple CRUD commands Created: 20/Oct/21  Updated: 28/Oct/23  Resolved: 07/Jul/22

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.7.0

Type: Spec Change Priority: Unknown
Reporter: PM Bot Assignee: Ezra Chung
Resolution: Fixed Votes: 0
Labels: size-small
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CXX-2455 Fix server version incompatibility fo... Closed
is depended on by CXX-2486 Use $$unsetOrMatches for upsert and m... Closed
Gantt Dependency
has to be done after CXX-2464 Use the count command instead of coll... Closed
has to be done after CXX-2229 Convert CRUD v2 spec tests to unified... Closed
Issue split
Server Compat: 4.7
Quarter: FY22Q4
Upstream Changes Summary:

DRIVERS-1788:
Drivers should add a new let option to find, findAndModify, update, and delete helper methods and sync CRUD unified spec tests with mongodb/specifications@1519da9.

For MongoDB 5.0+, the mentioned CRUD commands accept a let option of type object. This object consists of any amount of parameter names each followed by definitions of constants in the MQL Aggregate Expression language. Each parameter name is then usable to access the value of the corresponding MQL Expression with the "$$" syntax.

This ticket is a follow-up for DRIVERS-776


 Description   

This ticket was split from DRIVERS-1788, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 07/Jul/22 ]

Author:

{'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}

Message: Add 'let' option support for CRUD commands (#873)

  • CXX-2399 Sync CRUD unified spec tests with 1519da92
  • CXX-2399 Sync CRUD unified spec tests with 1fe5ca5e
  • CXX-2428 Sync CRUD unified spec tests with 1823a4e9
  • CXX-2455 Sync CRUD unified spec tests with 4a8ac5ff
  • CXX-2486 Sync CRUD unified spec tests with 51ca03b0
  • Add let support for delete commands
  • Add let support for find commands
  • Add let support for replaceOne
Generated at Wed Feb 07 22:05:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.