Quantcast
Channel: NodeJS TypeError: db.collection is not a function - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Sakil Khan for NodeJS TypeError: db.collection is not a function

you can try this I think this should work. I try it locally here is the sample codeconst express = require('express');const app = express();let MongoClient = require('mongodb').MongoClient;var...

View Article



NodeJS TypeError: db.collection is not a function

Server error while connecting to mongoDBTypeError: db.collection is not a functionat /Users/prokhorov/Desktop/IOS DEV /Shop/Shop/server.js:9:8at Layer.handle [as handle_request]...

View Article
Browsing all 2 articles
Browse latest View live


Latest Images