Answer the question
In order to leave comments, you need to log in
Why does Infinite Load appear with such a search for positions in MongoDB?
Hello.
This option works. When I request the url, the data is immediately returned to me:
ShopSchema.find(function (err, data) {
if (err) {
console.log(err);
}
else {
res.json(data);
}
});
ShopSchema.find((data, err) => {
if (err) {
console.log("--- ", err);
} else {
return res.json(data)
}
});
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