Why we sort thing by 1 , -1 in Aggregation FrameWork ???
It is always better to refer to the documentation. See https://docs.mongodb.com/manual/reference/operator/aggregation/sort/. The 1 and -1 are explained right in the first few sections.
Why we sort thing by 1 , -1 in Aggregation FrameWork ???
It is always better to refer to the documentation. See https://docs.mongodb.com/manual/reference/operator/aggregation/sort/. The 1 and -1 are explained right in the first few sections.