1.

Point out the wrong statement.(a) { $meta: “textScore” } expression is only meaningful in a pipeline that includes a $match stage with a $text query(b) The { $meta: “textScore” } expression is the only expression that the $sort stage accepts(c) $toLower only has a well-defined behavior for strings of ASCII characters(d) None of the mentionedI had been asked this question during an interview.Question is from Pipeline and Sharded Collections topic in portion Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

Right option is (d) NONE of the mentioned

Explanation: A $META EXPRESSION has the FOLLOWING syntax:{ $meta: }.



Discussion

No Comment Found

Related InterviewSolutions