MongoDB: find records that have non empty array field

db.getCollection('collection_name').find({'array_field_name.0': {$exists: true}})

Leave a Reply

Your email address will not be published. Required fields are marked *