#[CLOSED] AppwriteException: Invalid query: cannot query on virtual relationship attribute

1 messages · Page 1 of 1 (latest)

glass radish
#

Hi, I hope y'all are good.

How I can read data from the database according to an attribute of the collection which has a many to many relationship with another collection? I don't find how resolve this via the documentation. For example, I want to get all videos saved by the user. for this I created a "saved" attribute in the videos collection and this attribute has a many to many relationship with the "users" collection. Triyng with "getVideoSaved" function in the image.

simple jacinth
#

Hi ! Is there no way to write our own mariadb procedures to overcome this problem? If not, how did you go about getting around the problem and successfully fetching the related entities? THANKS !

hazy garnet
#

[CLOSED] AppwriteException: Invalid query: cannot query on virtual relationship attribute

hazy garnet