Guest User

Untitled

a guest
Nov 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. const m = this.getCollection(SOME_COLLECTION);
  2. m.find({
  3. '_id': {
  4. $nin: [Ace, Bay],
  5. },
  6. 'value.someCategory': {
  7. $type: 'object',
  8. },
  9. }, {
  10. '_id': 0,
  11. 'value.someCategory': 1,
  12. }).toArray((err, doc) => {
  13. if (err) {
  14. console.log(err);
  15. } else {
  16. console.log(doc);
  17. }
  18. });
Add Comment
Please, Sign In to add comment