Ticket: Get Comments - Java

When building the aggregation in Compass I try to export it to Java and then I get an error:
Unrecognized option to $lookup: let

Is it a bug or the ticket must be coded without java builders?

Thanks

Hi @Carlos_55342,

Java uses Aggregates.lookup for $lookup stage. Please read the following documentation page for the reference:

http://mongodb.github.io/mongo-java-driver/3.10/javadoc/com/mongodb/client/model/Aggregates.html#lookup-java.lang.String-java.util.List-java.lang.String-

Compass only (for JAVA) exports the pipeline when we uncheck “Use Builders” while exporting.

Kanika