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

Status: Closed
Project: Java Driver
Component/s: CRUD
Affects Version/s: None
Fix Version/s: 4.6.0

Type: New Feature Priority: Major - P3
Reporter: PM Bot Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: QP-priority
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by JAVA-4497 Fix server version incompatibility fo... Closed
is duplicated by JAVA-4442 Add 'let' option to ReplaceOptions Closed
Issue split
Related
related to JAVA-4498 Support 'let' option in BulkWriteOptions Closed
related to JAVA-4516 Fix server version incompatibility fo... Closed
Server Compat: 4.7
Quarter: FY22Q4, FY23Q1
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.

As part of this ticket, include the changes from DRIVERS-2027 as well.



 Comments   
Comment by Githook User [ 28/Mar/22 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Added support for let in operations (#900)

JAVA-4366
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/9884e19f69199eb843c5ef5dd33d294ebfd343a2

Generated at Thu Feb 08 09:01:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.