Mongodb compass is showing collections but mongosh can't find them on terminal

After switching to your db run the find command
You should not run “use users”
By running this command you are actually switching to a new db users as your snapshot clearly shows
That’s why your find command giving empty results

1 Like

Hello

"use users-db-app
db.users.find() "

you can find data

1 Like

thank you all for answering, it worked, sorry for late reply

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