So, I\'m sure I\'m missing something simple here, but when I run mongo as a daemon (using mongod --fork or just mongod), I see different database content than if I just run
MongoD(Daemon process).
In simple "Hello world" words - You won't communicate Mongod directly.
Instead, you use DB client:
mongo) - In an interactive JavaScript interface (-or- run mongosh the new MongoDB Shell).And you find more tools like this.
In your case, you want to use Mongo Shell client (mongo command).
A great way to see "the client" - "in action" is to open two terminals (or more) side by side.
Run mongod (mongo command will not work without MongoDB server install and running), then run mongo:
Output (1 connection: application mongo shell}
Next, run some CRUD Operations and see the messages under mongod.
Same idea if you connect Compass client:
Manage mongodb processes docs (Change data directory, Port and so on): https://docs.mongodb.com/manual/tutorial/manage-mongodb-processes/