1.

Which of the following operator is related to geography of data?(a) $geoSpatial(b) $geoNear(c) $geoRear(d) None of the mentionedThe question was posed to me during an interview for a job.My doubt stems from Aggregation Operations topic in chapter Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

The correct choice is (B) $geoNear

The best I can explain: $geoNear RETURNS an ordered STREAM of DOCUMENTS BASED on the proximity to a geospatial point.



Discussion

No Comment Found

Related InterviewSolutions