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 another false value inside the arr_object except the last one then that record’s id won’t be selected.
Is there any problem understanding my query please comment
I’ve tried multiple times but still, I can’t figure out how to solve this problem. Please any one help me
Here is the image of my database schema
I want only record ids, not the inside array object ids.
2
Answers
Here is the answer I figured to actually get that particular record I use the date object to match and another boolean called the
shouldBePaidByAdmin
object should true match then I will get the id