Different behavior between self hosted and cloud regarding querying relationship attributes
- 0
- Self Hosted
- Auth
- Cloud
I am wondering, what is true:
Here is stated, that queries of relationship attributes are not supported: https://appwrite.io/threads/1248091621074141214 https://github.com/appwrite/appwrite/discussions/7369 https://appwrite.io/docs/products/databases/relationships#queries
But I am using it since many month with appwrite cloud, and just realized that it is not working on my local machine using the self hosted version 1.6.0
Could you give an answer, what is the difference between cloud and self hosted regarding quering relationship attributes?
Example: One Module can have many Autonomylevels:
Modules [1] - [n] Autonomylevels
The same request causes different results on cloud an self hosted (V1.6.0):
Cloud: Request: https://cloud.appwrite.io/v1/databases/kicd/collections/autonomylevels/documents?queries%5B0%5D=equal%28%22modules%22%2C+%5B%2266130338758f1195f7cc%22%5D%29&queries%5B1%5D=orderDesc%28%22%24createdAt%22%29&queries%5B2%5D=limit%2810%29 queries[0]: equal("modules", ["66130338758f1195f7cc"]) queries[1]: orderDesc("$createdAt") queries[2]: limit(10) -> Response: 200 OK: works fine! π
Local: Request: http://localhost/v1/databases/kicd/collections/autonomylevels/documents?queries%5B0%5D=equal%28%22modules%22%2C+%5B%22678841302ad6c9faa883%22%5D%29&queries%5B1%5D=orderDesc%28%22%24createdAt%22%29&queries%5B2%5D=limit%2810%29 queries[0]: equal("modules", ["678841302ad6c9faa883"]) queries[1]: orderDesc("$createdAt") queries[2]: limit(10) -> Response: 400 (Bad Request) Error: Cannot query on virtual relationship attribute
Recommended threads
- One-time Cloud migration blocked by data...
Hi, Iβm blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...
- [SOLVED] curl error Number: 6 β function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...
- general_bad_request when creating accoun...
I have created a new bug request, could anyone have a look - https://github.com/appwrite/appwrite/issues/11908?