These are chat archives for Automattic/mongoose
console.logthere, it will always run immediately, before the DB query has time to respond!
console.log()and any work you want to do with the results, inside the callback function.
@rdy23x @bhasin11 You can’t do
const result = model.find(…);
But you can do
const result = await model.find(…);