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
- Auth not working on expo react native
I'm trying to launch a development server with expo go and appwrite as a backend. On my windows pc, I've got a local docker instance of appwrite running as my b...
- Bulk delete failed with 401
- I created a transaction to bulk delete rows in a table has `done` equal `true` follow documentation. But when run, it returns 401 unauthorized error as screen...
- In which format should i pass the date?
I have a column with the type `datetime`. So i want to know which format is suitable for passing the date