How can I make these the opposite way, I want to get all the object with values in the object array. but my code is the opposite of it
this is my code;
module.exports.getAllOrders = () => {
return User.find({usersOrder: null}).then(result => {
return result;
})
}
since I use usersOrder: null I only get those that has empty array.