Actually the thing is i have been trying to work out the connection of the mongodb server in codesandbox as i am new to it and couldn't find anything?
when i run my app it shows error and Ibelieve that is due to the mongod command not running
and when i try to run the mongod command in the terminal it says that no such command exists?
PLS someone help me
UnhandledPromiseRejectionWarning: MongoNetworkError: failed to connect to server [sandbox:27017] on first connect [MongoNetworkError: getaddrinfo ENOTFOUND sandbox sandbox:27017]
at Pool.<anonymous> (/sandbox/node_modules/mongodb/lib/core/topologies/server.js:431:11)
at Pool.emit (events.js:198:13)
at createConnection (/sandbox/node_modules/mongodb/lib/core/connection/pool.js:559:14)
at connect (/sandbox/node_modules/mongodb/lib/core/connection/pool.js:973:11) at makeConnection (/sandbox/node_modules/mongodb/lib/core/connection/connect.js:39:11)
at callback (/sandbox/node_modules/mongodb/lib/core/connection/connect.js:261:5) at Socket.err (/sandbox/node_modules/mongodb/lib/core/connection/connect.js:286:7)
at Object.onceWrapper (events.js:286:20)
at Socket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
(node:687) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:687) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.