Suppose I want to run query like this
.find(Filters.exists("a", false))
.sort(Sorts.orderBy(Sorts.descending("b"),Sorts.ascending("c")))
But with findOneAndUpdate operation.
.findOneAndUpate(bson???, Updates.combine(Updates.set("b", 1), Updates.set("c", 2)), callback)
How do I create correct bson parameter, combining both filter and sort?