Laxy PatelOriginal post
Rank 1: Thread
I am trying to fetch individual users chat for that i have created =>{ id1: my_uid+""+friends_uid , id2: friends_uid+""+my_uid }
and using thid syntax to fetch the data => Query.and([
Query.equal("id1",myInfo?.$id+""+selectedID),
Query.equal("id2", selectedID+""+myInfo?.$id)
])
But i am getting this query data Query.equal("id1",myInfo?.$id+""+selectedID), second Query.equal("id2", selectedID+""+myInfo?.$id) its not getting true not getting second query data.
Summary
Developers are trying to use an 'AND' query to fetch individual users' chat data, but the query is not working correctly. The issue lies in the syntax being used to fetch the data.