Database

[{"fieldOnCollection":"foo"},{"fieldOnCollection":"notfoo"},{"anotherField":"bar"},{"anotherField":"notbar"}]

Query

db.collection.aggregate({"$match":{"$or":[{"fieldOnCollection":"foo"},{"$and":[{"fieldOnCollection":{"$exists":false}},{"anotherField":"bar"}]}]}})

Result