[CDRIVER-4198] Support 'let' option for multiple CRUD commands Created: 20/Oct/21  Updated: 28/Oct/23  Resolved: 24/Mar/22

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.22.0, 1.22.0-beta0

Type: Improvement Priority: Unknown
Reporter: PM Bot Assignee: Jeremy Mikola
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 PHPC-2005 Support 'let' option for multiple CRU... Closed
is depended on by PHPLIB-748 Support 'let' option for multiple CRU... Closed
Issue split
split from DRIVERS-2210 Fix server version incompatibility fo... Closed
split from DRIVERS-2226 Fix server version incompatibility fo... Implementing
split from DRIVERS-2183 Support 'let' option in BulkWriteOptions Implementing
split from DRIVERS-2027 Add 'let' option to ReplaceOptions Closed
Related
related to CDRIVER-4329 Do not permit extra fields when match... Closed
related to CDRIVER-4373 Do not call mongoc_bulk_operation_set... Closed
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 [ 24/Mar/22 ]

Author:

{'name': 'Jeremy Mikola', 'email': 'jmikola@gmail.com', 'username': 'jmikola'}

Message: CDRIVER-4198 let option for CRUD commands (#957)

  • Add "let" option to CRUD methods
  • mongoc_bulk_operation_set_let
  • Support "let" option for delete, update, and findAndModify
  • CRUD spec tests for "let" option

Synced with mongodb/specifications@1028c348c86bb2c0ea313c30ed8320825048fe5d

Also includes some test changes related to CDRIVER-4063

  • Document "let" option for mongoc_collection_find_with_opts
Comment by Jeremy Mikola [ 15/Mar/22 ]

https://github.com/mongodb/mongo-c-driver/pull/957

Comment by Jeremy Mikola [ 15/Feb/22 ]

Adding "split from" relationship to DRIVERS-2027, which is a follow-up ticket for DRIVERS-1788.

Also deleting CDRIVER-4261, which was a separate follow-up ticket just for ReplaceOptions, so that we can consolidate all of the work in this ticket.

Generated at Wed Feb 07 21:20:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.