This repository has been archived by the owner on Apr 28, 2024. It is now read-only.
Unable to execute Aggregate query with Lookup #68
Labels
⚙️ backend
backend related issue
🐞 bug
Something isn't working
🔥 critical
It is a critical issue and need to be fixed asap
I tried executing the below query from the IDE and it is panicking. The query works fine in Mongo console and when testing with other IDEs.
db.credits.aggregate([{$lookup:{from: "movies", localField: "id", foreignField: "id", as: "results"}}])
Here is the panic output in console.
I found the problem to be in this function
mongoutils.IsQueryTypeRead(queryType)
where thequery.Args
is having 0 elements and therefore panicking. I suppress the panic here but when it gets back in thequeryengine
query conditional checks for queryType then it panics there.The text was updated successfully, but these errors were encountered: