Spring Boot and MongoTemplate: How to Use Match in Aggregations Looking for something specific in your MongoDB collection? If so, then you'll probably enlist the aid of the match stage filter in your aggregation.