Database

[{"collection":"collection","count":3,"content":{"liker":{"type":"enum","values":[-1,0,1]},"liked":{"type":"objectId"},"f_a":{"type":"enum","values":[-1,0,1]},"f_b":{"type":"enum","values":[-1,0,1]}},"indexes":[{"name":"single_idx","key":{"liker":1,"liked":1,"f_a":1,"f_b":1}}]}]

Query

db.collection.aggregate([{$match:{liked:ObjectId("68b3afa87b1a5c97a43e2fdd"),liker:1,$or:[{feld_a:1},{feld_b:0}]}},{$project:{_id:0,liked:1}}]).explain("queryPlanner")

Result