0

So I'm using MongoDB, and this is my first time dealing with a VPS on my own, I'm trying to view the users i have on the website. I know for a fact that there are signed up users, because I can signup & Login and it all works.

I Also tried to connect to the database from MongoDB Compass but failed.

enter image description here

0

First of all, I thought you are talking about MongoDB users. So, I had to change my answer.

You can try the below command for seeing to the collection which is users

db.users.find({})
1
  • yes that worked perfectly, thanks <3 – lunix Jan 10 at 15:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.