Database

[{"key":1,"a":""},{"key":2,"a":"aaa"}]

Query

db.collection.aggregate([{"$match":{"$expr":{$not:{"$eq":["$a",""]}}}}])

Result