Database

[{name:"Object 1",fruitList:["apple","pear","orange","grape"]},{name:"Object 2",fruitList:["melon","pear","apple","kiwi"]}]

Query

db.collection.find({$expr:{$lt:[{$subtract:[{$indexOfArray:["$fruitList","apple"]},{$indexOfArray:["$fruitList","pear"]}]},0]}})

Result