[JAVA-4884] MqlValues.of(String) should wrap in a literal Created: 16/Feb/23  Updated: 28/Oct/23  Resolved: 22/Jun/23

Status: Closed
Project: Java Driver
Component/s: Builders
Affects Version/s: None
Fix Version/s: 4.10.0

Type: Bug Priority: Unknown
Reporter: Maxim Katcharov Assignee: Maxim Katcharov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

Currently, of("$myField") will be interpreted as a field, rather than a literal string. Also, ofStringArray.



 Comments   
Comment by Githook User [ 20/Jun/23 ]

Author:

{'name': 'Maxim Katcharov', 'email': 'maxim.katcharov@mongodb.com', 'username': 'katcharov'}

Message: Wrap strings in literal if contains $ (#1144)

JAVA-4884
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/86b43d67c1e36314bb7b52f1ade114b60c45a4c7

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