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
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...