Hello,
I'm failing to get related data when Refine queries my Appwrite collection. Below is the request sent by Refine
fetch("https://***/v1/databases/catalog/collections/66a91c86002e92cde00c/documents?queries%5B0%5D=offset%280%29&queries%5B1%5D=limit%2825%29", {
"headers": {
"accept": "*/*",
"accept-language": "en-US,en;q=0.9,tr;q=0.8",
"content-type": "application/json",
"priority": "u=1, i",
"sec-ch-ua": "\"Not)A;Brand\";v=\"99\", \"Microsoft Edge\";v=\"127\", \"Chromium\";v=\"127\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "cross-site",
"x-appwrite-project": "***",
"x-appwrite-response-format": "1.0.0",
"x-fallback-cookies": "{\"a_session_66a8eab300012a42b37c\":\"***\"}",
"x-sdk-language": "web",
"x-sdk-name": "Web",
"x-sdk-platform": "client",
"x-sdk-version": "10.2.0"
},
"referrer": "http://localhost:5173/",
"referrerPolicy": "strict-origin-when-cross-origin",
"body": null,
"method": "GET",
"mode": "cors",
"credentials": "include"
});
Please let me know if more info needed
@Kenny
Is there a reason you're using the 10.x SDK? it looks like it's 2 years old and meant for appwrite 1.0.0?
What version of Appwrite on you on?
I'm on Appwrite 1.5.7 version currently. Actually this is a different package @refinedev/appwrite maintained by Refine team but it's not updated to latest version
but actually they are using quite simple methods to build a data provider out of Appwrite, I can imitate their way to port their package to the Appwrite 1.5
Sheesh. Not sure how backwards compatible Appwrite is, that could be your issue. Otherwise, like I said in general, relationships should come by default unless you've not selected them using Query.select
Thanks. I will test the latest appwrite sdk and see how can I port it
Wait, does your related item have permissions?
you're good
wait please
that was exactly it!
:P Awesome
category collection had no perms to the all users
thanks a lot, you eased a lot of pain
but they still have to update their package
i'll talk to them, even i may create a PR for them
thanks again!
[SOLVED] Failing to get related data with Refine's Appwrite adapter
Recommended threads
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...