I am trying to fetch chat data between two individuals from firestore database. let's say the two individuals are Chris and Sam.
I am trying to fetch data which holds the below condition:
(to =='Chris' AND from == 'Sam') OR (to == 'Sam' AND from == 'Chris')
Please guide me on how I can use both OR and AND logic in my firestore query.