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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...