Answer the question
In order to leave comments, you need to log in
How to get all users except?
It turned out to get all users except '[email protected]':
models.user.find({ email: { $ne: ['[email protected]'] } } , (err, result) => {
console.log(result);
socket.emit('update user list', result);
}, { email: 1 });
Answer the question
In order to leave comments, you need to log in
It turned out like this...
models.user.find({ email: { $not: { $in: ['...', '...'] } } } , (err, result) => {
console.log(result);
socket.emit('update user list', result);
}, { email: 1 });
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question