Java MongoDB Projection

Hello @Hamid_Jawaid,

You can build your aggregation in the MongoDB Compass using the Aggregation Pipeline Builder and then Export to Specific Language, where you have the Java option. You can use that generated Java code.