Hello,
I have a mongodb collection with a MultiPolygon field:
{
wheres: {
type: {
type: 'String',
enum: ['MultiPolygon'],
default: 'MultiPolygon'
},
coordinates: {type: [[[[[Number]]]], default: []}
}
}
I look for all the documents where there is a point in this field:
{
wheres: {
$geoIntersects: {
$geometry: {
type: 'Point',
coordinates: [3.8232421874999996, 47.30903424774782]
}
}
}
}
This query works and finds the results with mongoose and Robot3T.
But when I search on Schema analyze on MongoDB Compass, it doesn’t work…
Do you have an idea of the problem?
Thank you !