Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const m = this.getCollection(SOME_COLLECTION);
- m.find({
- '_id': {
- $nin: [Ace, Bay],
- },
- 'value.someCategory': {
- $type: 'object',
- },
- }, {
- '_id': 0,
- 'value.someCategory': 1,
- }).toArray((err, doc) => {
- if (err) {
- console.log(err);
- } else {
- console.log(doc);
- }
- });
Add Comment
Please, Sign In to add comment