

InterviewSolution
Saved Bookmarks
1. |
Point out the wrong statement.(a) If $near or $nearSphere query specifies the center point as a GeoJSON point, specify the distance as a non-negative number in meters(b) If $nearSphere query specifies the center point as legacy coordinate pair, specify the distance as a non-negative number in radians(c) $near can only use the 2dsphere index if the query specifies the center point as a GeoJSON point(d) None of the mentionedI had been asked this question in a national level competition.The query is from Geospatial Index topic in section Index/Indexing Concepts of MongoDB |
Answer» CORRECT CHOICE is (d) None of the mentioned To explain: $minDistance filters the results of a geospatial $near or $nearSphere query to those documents that are at least the specified distance from the center POINT. |
|