filmov
tv
MongoDB 201: Lesson 3, Exercise 4 » Changing the field order in the aggregation pipeline

Показать описание
How to change a field order using Studio 3T’s aggregation pipeline.
In this exercise, you will add the fourth stage to the pipeline. The stage is based on the $replaceRoot aggregate operator, which replaces input documents with output documents. In this way, you can reorder the fields as they appear in the pipeline.
In this exercise, you will add the fourth stage to the pipeline. The stage is based on the $replaceRoot aggregate operator, which replaces input documents with output documents. In this way, you can reorder the fields as they appear in the pipeline.