skip to Main Content

What does 'dbo' stands for in MongoDB – Express app?

Here is the code example: app.js const express = require("express"); const app = express(); const cors = require("cors"); require("dotenv").config({ path: "./config.env" }); const port = process.env.PORT || 5000; app.use(cors()); app.use(express.json()); app.use(require("./routes/record")); // get driver connection const dbo = require("./db/conn"); app.listen(port,…

VIEW QUESTION

i got a problem when im connecting to mongodb

Terminal [nodemon] app crashed - waiting for file changes before starting... [nodemon] restarting due to changes... [nodemon] starting `node index.js` (node:16036) [MONGOOSE] DeprecationWarning: Mongoose: the `strictQuery` option will be switched back to `false` by default in Mongoose 7. Use `mongoose.set('strictQuery',…

VIEW QUESTION
Back To Top
Search