[SERVER-38835] Geospatial queries within $lookup pipeline Created: 04/Jan/19 Updated: 12/May/21 Resolved: 07/Jan/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework, Geo |
| Affects Version/s: | 4.0.3 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor - P4 |
| Reporter: | Kasper Hareskov Tygesen | Assignee: | Danny Hatcher (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
I have a collection of areas:
I want to aggregate this so that every area (document) returned has a property containing all other areas within it's boundaries. Result example where Area 2 and Area 3 are contained within the boundaries of Area 1.
I have tried using the `$lookup` aggregate but it seems like $geoWithin isn't supported inside the pipeline with my `let` variable as input. So far my query ended up like this, but obviously this doesn't work.
|
| Comments |
| Comment by Akshay Bilani [ 12/May/21 ] |
|
Does Someone found this problem solution |
| Comment by Danny Hatcher (Inactive) [ 07/Jan/19 ] |
|
Hello Kasper, Thanks for your report. Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-user group. Thank you, Danny |