Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Database
Created by Guest
Created on May 6, 2021

geoContain

Dear all, according to the attached image, I have some documents (in blue, with id from 1 to 5) having a geographic extent and a search area (in yellow). I need to find all documents where search area is completly inside the document's geometry. Using different words, I need to find all documents where geometry completly covers the given search area. In my sample, the geo query should return the document with id 1. This kind of query has a opposite logic than the $geoWithin Could you provide a $geoContain functionality in the next future?
  • Attach files