Answer the question
In order to leave comments, you need to log in
How to compare MongoDB database data?
Hello everyone, I apologize for such a stupid question, but still...
For example, I have the following code:
mongoClient.connect("mongodb://localhost:27017/base", function(err, db){
if(err) return console.log(err);
db.collection("collection").find({param:'dfd',param_1:'fdfd'}).toArray(function(err, results){
console.log( results);//Вывод того что в базе
db.close('close');
})
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question