vgrabovets
1/5/2018 - 3:32 PM

mongodb queries

mongodb queries

db.getCollection('ind').find( {'alternative_names': {$exists: true}} )

db.getCollection('nz').find(
  {
    '_id': {$in: ['nz:-:9429036504954', 'nz:-:9429036154609', 'nz:-:9429036599264']}
  }
)

db.getCollection('fr').find( 
  { $and: [ { 'full.L7_NORMALISEE': { $ne: 'FRANCE' } }, { 'full.L7_NORMALISEE': { $ne: '' } } ] } 
)

db.getCollection('fr').find( { 'full.L7_NORMALISEE': { $nin: [ 'FRANCE', '' ] } } )