SHARE
TWEET

Untitled

a guest Mar 20th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2. "_id" : ObjectId("5c7c804f14b4c026ba7fcaba"),
  3.  
  4. "values" : [
  5.     {
  6.         "active" : true,
  7.         "id" : 30,
  8.     },
  9.  
  10.     {
  11.         "active" : true,
  12.         "id" : 33,
  13.     },
  14.     {
  15.         "active" : true,
  16.         "id" : 34,
  17.     },
  18.     {
  19.         "active" : true,
  20.         "id" : 35,
  21.     },
  22.     {
  23.         "active" : true,
  24.         "id" : 36,
  25.     }
  26. ]
  27.      
  28. {
  29. "_id" : ObjectId("5c7c804f14b4c026ba7fcaba"),
  30.  
  31. "values" : [
  32.     {
  33.         "active" : true,
  34.         "id" : 30,
  35.     },
  36.     {
  37.         "active" : true,
  38.         "id" : 34,
  39.     },
  40.     {
  41.         "active" : true,
  42.         "id" : 35,
  43.     },
  44.     {
  45.         "active" : true,
  46.         "id" : 36,
  47.     }
  48. ]
  49.      
  50. db.test.find( { 'value.id': { $ne: 33 } } )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top