Problem using $lookup aggregation stage on MongoDB Ubuntu 20.04LTS

hi, i have this problem on mongodb 3.6.8(ubuntu 20.04):
message:“Unrecognized pipeline stage name: ‘$loockup’”

Hello @Divine_Buna, welcome to the MongoDB Community forum!

You can see the $lookup syntax and examples for proper usage of this aggregation stage for MongoDB v3.6:

You got the error as there is a misspelled syntax in the stage name - ‘$loockup’.

Also, there is a latest version of MongoDB v5.0 which you can try, as it has a more aggregation stages and operators for your querying needs.

1 Like

Looks like you just misspelled it by one letter - loockup vs lookup (you have an extra c).