ReactJS + Redux: Why isn't MongoDB saving data to the database even with correct API requests?
You're using the wrong Mongo shell command: db
will only show you the current database (test
), but if you want to see a list of all databases, you should use show dbs
.
If you want to switch databases:
use practicedb
And, if you want to see the collections in the current database:
show collections