Can MongoDB filter IDs with boolean value true in an array of objects?
I am trying to filter those records ids that have isPaymentCompleted: true inside the arr_object but the condition is that the last object's boolean value must be false. All the other objects' boolean values must be actual if there is…