Database

[{anything:"whatever",something:{a:{getThis:"wow"},b:{getThis:"just wow"},c:{getThis:"another wow"}}}]

Query

db.collection.aggregate([{$match:{$expr:{$ne:[[],{$filter:{input:{$objectToArray:"$something"},cond:{$eq:["$$this.v.getThis","wow"]}}}]}}}])

Result