You can use the below-mentioned way to tell wg=here MongoDB is storing:-
By default, mongod sets the database location to /data/db/.
For checking by yourself you should run ps -xa | grep mongod and if you don't see a --dbpath which explicitly tells mongod to look at that parameter for the db location and you don't have a dbpath in your mongodb.conf, then the default location will be: /data/db/ and you should look there.