When using $first in a $group stage, the $group stage should follow a _______ stage to have the input documents in a defined order.
A. $order
B. $sort
C. $asc
D. None of the mentioned
Answer:A
When using $first in a $group stage, the $group stage should follow a _______ stage to have the input documents in a defined order.
A. $order B. $sort C. $asc D. None of the mentioned