Practical example demonstrating how to query for min/max values of grouped documents in MongoDB including additional non-grouped field values using $push
, $map
and $filter
aggregation operators.
MongoDB
MongoDB: add/update fields referencing other existing fields using aggregation pipelines
Short explanation on how to add or update fields in documents referencing the values of other already existing fields by leveraging the aggregation pipeline framework.