Lab - Using $lookup - Is there a reason for no results?

This is using the classroom default classroom mongo connection. Is there a reason that results aren’t showing up? I tried a find, but apparently I had no permissions to do a find on the data set.

MongoDB Enterprise Cluster0-shard-0:PRIMARY> pipeline = [{$match:{“airplane”: {"$regex": /380|747/}}}]
[ { “$match” : { “airplane” : { “$regex” : /380|747/ } } } ]
MongoDB Enterprise Cluster0-shard-0:PRIMARY> db.routes.aggregate(pipeline).itcount()
0
MongoDB Enterprise Cluster0-shard-0:PRIMARY> db.routes.aggregate(pipeline).pretty()
MongoDB Enterprise Cluster0-shard-0:PRIMARY>

It seems that the handout, unmentioned in the lab text, mentions a different data source.

db.air_alliances.findOne()

And of course “air_routes” is mentioned, but ambiguously. Sigh.

Hi @Alexander_Boese,

You are right, the collection names are air_alliances and air_routes. This is different from the collections shown in the video. Apologies for all the confusion!

We are already working on updating the course to include up-to-date content and an improved learning experience.

Meanwhile, I would recommend extensively using forums and referencing MongoDB Documentation for learning the concepts in the existing course.

Please feel free to reach out if you have any additional questions.

Kind Regards,
Sonali Mamgain