adplus-dvertising
frame-decoration

Question

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: (b).$sort

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. When using $first in a $group stage, the $group stage should follow a _______ stage to have the input documents in a defined order.