Chapter 4: Advanced CRUD Operations Lab: $expr

I have problem with connection to Atlas, when i connect and try find some, in answer always its 0 or null. What i do wrong.
Connection string i coppied from atlas.
my command for solve this Lab :
db.sample_training.companies.find({ $expr: { $eq: [ “$permalink” , “$twitter_username” ] } }).count()

connection str: mongo “mongodb+srv://” --username m001-student
pass: m001-mongodb-basics

You have to first select the database you want to use with:

use sample_training

and then run the find command on the collection with:

db.companies.find( ... )
1 Like

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