firestormOriginal post
Rank 2: Process
Plain text
user_id = data["user_id"] followed_id = data["followed_id"] result=None query=[Query.equal("follower",user_id),Query.equal("following",followed_id)] try: result=databases.list_documents(databaseID,followCollectionID,queries=query) print(result) except Exception as e: print(e)
result=None```
when i search one by one query it comes but i actually want to search if the collection has a document which satisfies both the queries how can i do that ? if i use this syntax i get an index errorSummary
TL;DR: User is having trouble creating a query in a Python SDK that searches for a document that satisfies multiple conditions. They currently have a workaround using two separate requests, but are looking for a solution to check if a document exists that satisfies both conditions in a single query. They have provided code for reference. An index error is encountered when trying to implement the solution. No solution is provided in the support thread.