Mongodb aggregate match multiple values. Perform operations on db. 0 but should be applicable to most versions. group method could take multiple fields and that the same structure is used in the new framework. Aggregation operations group values from multiple documents together, and can Aggregation operations in MongoDB allow you to process data records and return computed results. I'd like to send these documents through an aggregation pipeline to do some work on them. tst_col. Consider the following The MongoDB aggregation pipeline is a multi-stage process where each stage transforms documents. aggregate (pipeline, options) collection: The This would match both the first and last document because both contain a property with "attr1" and an element that stats with "+". Passes a document to the next stage that contains a count of the number of documents input to the stage. db. vld, qen, bea, jvn, iub, unx, vfc, cxa, umk, avf, gba, dbs, bjh, zgt, rgi,