This is a fork of https://github.com/mongodb-developer/nodejs-quickstart, simplified for FerretDB testing.
npm install
node index.js --uri='mongodb://localhost:27017/'
- To run with strict Stable API:
node index.js --uri='mongodb://localhost:27017/' --strict
- To run with PLAIN authentication pass PLAIN to the
authMechanism
URI option:node index.js --uri='mongodb://localhost:27017/?authMechanism=PLAIN'