[JAVA-5089] Update Projections Javadoc to indicate that computed expressions are allowed on find as of 4.4 Created: 28/Jul/23  Updated: 28/Oct/23  Resolved: 10/Oct/23

Status: Closed
Project: Java Driver
Component/s: Builders, Documentation
Affects Version/s: None
Fix Version/s: 4.11.0

Type: Improvement Priority: Unknown
Reporter: Jeffrey Yemin Assignee: Slav Babanin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
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   

The com.mongodb.client.model.Projections#computed method's Javadoc says:

Projection with an expression is only supported using the $project aggregation pipeline stage.

But as of MongoDB 4.4 this is no longer true. See https://www.mongodb.com/docs/manual/reference/method/db.collection.find/#std-label-find-projection.

Docs should be updated to indicate that expressions are now supported.


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