Querying by location with 2dsphere indexes.
- Category: Misc — part of the MongoDB Tutorial on GoCareerGo
- Read the short summary above, then check the linked docs for full syntax/behaviour
- Interview tip: be ready to explain "Geospatial Queries" in one sentence, then back it up with a tiny example
// Geospatial Queries — minimal example
// db.collection.<operation>(...)Tip
Quick recall: "Geospatial Queries" — querying by location with 2dsphere indexes.