[mongodb] how to set mongod --dbpath

You can use --dbpath flag in order to provide it with the parameters i.e, the directory address. I found it useful for Windows 10 OS.

With the default settings it is usually not required.