Hello All, Can we use "or" condition in backend query.
There are three fields.
Sender
Receiver
Timestamp
I wanna filter the backend query using Authenticated user id. I wanna display the documents if auth user id is available in any one of the sender and receiver fields. Auth user id will be in either sender or receiver. How can we create query for this.
If we need to create 2 seperate queries to achieve this then how can I merge both results and display them by sorting timestamp. I tried this but each query is getting sorted seperately but not among overall. Please help me
Thanks in Advance!