1.

The order of documents returned by a query is not defined unless you specify a ______(a) sortfind()(b) sortelse()(c) sort()(d) none of the mentionedThe question was asked during an online interview.This key question is from Read Operations topic in section MongoDB CRUD Concepts and Operation of MongoDB

Answer» RIGHT OPTION is (C) sort()

The explanation: You can modify the QUERY to impose LIMITS, skips, and sort orders.


Discussion

No Comment Found

Related InterviewSolutions