MongoDB Java Driver legacy all-in-one JAR providing comprehensive database connectivity for Java applications with synchronous APIs, CRUD operations, aggregation, GridFS, change streams, and authentication support
—
MongoDB aggregation pipeline operations with type-safe stage builders and result processing for complex data transformations and analytics.
public interface MongoCollection<TDocument> {
AggregateIterable<TDocument> aggregate(List<? extends Bson> pipeline);
<TResult> AggregateIterable<TResult> aggregate(List<? extends Bson> pipeline, Class<TResult> resultClass);
}
public final class Aggregates {
public static Bson match(Bson filter);
public static Bson project(Bson projection);
public static Bson sort(Bson sort);
public static Bson group(Object id, BsonField... fieldAccumulators);
public static Bson lookup(String from, String localField, String foreignField, String as);
public static Bson unwind(String fieldName);
public static Bson skip(int skip);
public static Bson limit(int limit);
}[Full aggregation pipeline documentation would follow...]
Install with Tessl CLI
npx tessl i tessl/maven-org-mongodb--mongo-java-driver