1.

The $geoWithin operator uses the _______ operator to specify the GeoJSON object.(a) $sphere(b) $geoin(c) $geometry(d) All of the mentionedThis question was posed to me in an online quiz.This interesting question is from Index Types topic in chapter Index/Indexing Concepts of MongoDB

Answer»

Correct CHOICE is (c) $GEOMETRY

Easy explanation: For $geoWithin, if you specify a single-ringed polygon that has an AREA greater than a single hemisphere, include the custom MongoDB coordinate reference SYSTEM in the $geometry EXPRESSION.



Discussion

No Comment Found

Related InterviewSolutions