Posts by wBB • 518 points
53 posts
-
0
votes1
answer468
viewsQ: Function call in external file in Nodejs
I previously had a single file called aaa.js where there was the following code part below, and separated into parts: const callback = (err, data, res) => { if (err) return console.log('ERRO: ',…
-
0
votes1
answer470
viewsQ: Error in Mongoose findOne
I’m getting Error: Invalid argument to findOne(): 'texto pesquisado' when executing the findOne mongoose: const User = mongoose.model('users', mySchema); const query - 'texto pesquisado';…
-
2
votes1
answer219
viewsQ: Model of the Mongodb
Hello! I’m starting to use Mongodb with Mongoose on Nodejs and I’m finding a strange behavior when creating Models mesus on Mongodb. Example: mongoose.connect('mongodb://localhost/db_teste'); const…