Explanation:$sort takes a document that specifies the field(s) to sort by and the respective sort order. 5. Point out the wrong statement :
A. $weekDay returns the week number for a date as a number between 0 and 53 (leap year)
B. $first is not meaningful when documents are in a defined order
C. $first is an accumulator operator available only in the $group stage
D. None of the mentioned
Answer:A
Explanation:$sort takes a document that specifies the field(s) to sort by and the respective sort order. 5. Point out the wrong statement :
A. $weekDay returns the week number for a date as a number between 0 and 53 (leap year) B. $first is not meaningful when documents are in a defined order C. $first is an accumulator operator available only in the $group stage D. None of the mentioned
Explanation:$first returns the value that results from applying an expression to the first document in a group of documents that share the same group by key. 6. Which of the following returns the value that results from applying an expression to the last document ?