Details
-
New Feature
-
Status: Resolved
-
P2
-
Resolution: Duplicate
-
2.3.0
Description
The db.collection.find operation for MongoDb allows for the filter parameter, but not for the projection parameter. This would be extremely helpful for retrieving only a portion of fat documents. Looking over the current java code for MongoDbIO, this looks pretty straightforward.
I think the best approach would be to add a String withProjection method to the builder, similar to the withFilter method, then parse this to Bson and then append it to the find method with .projection(fields(projectionBson)).
Attachments
Issue Links
- is related to
-
BEAM-6134 MongoDbIO add support for projection
- Resolved