I am working on Node.js and when I connect node.js with mongo database which is on Azure cosmos. it show an error “MongoServerError: let not supported”.
I am using Mongodb version 4.4. how to fix this issue
When i read microsoft document i show
“The $lookup
aggregation does not yet support the uncorrelated subqueries feature introduced in server version 3.6. You will receive an error with a message containing let is not supported
if you attempt to use the $lookup
operator with let
and pipeline
fields”