{"$or" :[{dst_airport : "KZN"},{src_airport : "KZN"}]}, {"$or" :[{airplane : "CR2"},{airplane : "A81"}]}

Not sure what is incorrect here, I am using the exact same query in data explorer as trainer, not sure what is wrong, need help.

This is a curly braces issue.

The last closing brace in

{ src_airpot : "KZN" } ] } 

terminates the query part of the first parameter. The rest that does $or on airplane is taken as a projection.

1 Like

Could be, but the problem is that Atlas does not accept projections in this form (as find() does).

So I have come to believe that this query as presented in the lecture is invalid.

Please check out this issue:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.