Details
-
Improvement
-
Resolution: Fixed
-
Unknown
-
None
-
None
-
Not Needed
-
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.