can we sort the relationship on basis of updated , basically i have a user collection having relation with imagescollection any waey to get images when calling user collection as imaeg to be sort on basis of updated?
So, you want the image relationship sorted when fetching a user document too? Just trying to understand the usecase. One user can have many images?
hm
but i dont think thats really possible with queries too. fetching a user doc will fetch all the images i think (or max of 25?). What you could do is maybe add a userId attribute to the image collection & fetch those with Query.
possibly also add a doc level permission
yeah i think have to do two fetch user and other images
you can use Query.select and not add the relationship data attribute key to avoid fetching that. A bit quicker and faster to get only the data required. After that fetch the images with your Query for userId and limit & orderDesc
hm! thanks buddy
no worries. pl. mark the issue as [SOLVED] if the issue/question is resolved.
Happy Appwriting :appwritecheers:.
Recommended threads
- Realtime doesn't seem to work with Table...
Hi, I am trying to connect my tables rows with realtime on my react website, it connects, but I dont get the rows when a row is being created. I tried with Chan...
- Failed to receive appwrite reset passwor...
Hey there, I forgot my password for my appwrite account but when i use forgot password, i dont get an email to reset the account but when i try to create a new ...
- Domain Help
My domain estimately.me is verified in Appwrite DNS but SSL certificate keeps failing with: DNS problem: server failure at resolver looking up A for estimately....