1.

Which of the following operator incorporates the functionality of $match, $sort, and $limit for geospatial data?(a) $geoSpatial(b) $geoNear(c) $geoRear(d) None of the mentionedThe question was asked in an internship interview.My question is taken from Aggregation Operations topic in portion Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

Correct OPTION is (b) $geoNear

Explanation: The OUTPUT documents include an additional DISTANCE FIELD and can include a location identifier field.



Discussion

No Comment Found

Related InterviewSolutions