Anda dapat langsung meneruskan BasicDbObject ke salah satu tahap pipeline agregasi.
Aggregation agg = newAggregation(
group("title").
push(new BasicDBObject
("version", "$version").append
("author", "$author").append
("dateAdded", "$dateAdded")).as("versions"));