I have a one way relationship relating VolunteerReport to User.
I then want to list all VolunteerReports related to User.
I don't think I can just query the user, since the relationship is one-way, so the user doesn't have that relationship on their end.
Where volunteer is the relationship column:
I tried Query.equal('volunteer', userId)
And Query.equal('volunteer.$id', userId)
Neither worked.
And I can't find any documentation on this.
What should I do?
In the meantime, I am just fetching all and manually filtering. Very inefficient though.
Ah, I just figured it out.
Query.equal('volunteer', userId) works fine, I just didn't await my listRows call ðŸ˜
Recommended threads
- Issue: Getting 401 Unauthorized Error Wh...
Hi team, I'm encountering a 401 user_unauthorized error when trying to create a row in my projects table, even though I have full user permissions configured fo...
- Playing a video the showing an error
Playing a video the showing an error like, FATAL EXCEPTION: DefaultDispatcher-worker-2 (Ask Gemini) ...
- Question: Best practices for implementin...
Hi everyone! I'm building an application that needs a multi-level hierarchy: Organizations → Teams → Users. I see that Appwrite provides a Teams service, but I...