-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: Builders, Documentation
-
None
-
Not Needed
-
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.