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
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...
- Create admin user?
I'm not really sure how this is supposed to work, I installed Appwrite through docker-compose and set it up. When I launched the app and went into it, I created...