[CLOSED] Selecting single relationship attribute with Query.select returns all relationships
- 0
- Databases
1.4.2 I have collection with 3 relationships. I want to select only one of them but appwrite always returns all relationships.
select([\"$id\",\"$createdAt\",\"$updatedAt\",\"$permissions\",\"mediaThumbnail.$id\"])
returns (Sorry! dart map - should be understandable)
0 = {map entry} "$id" -> "64fe3b5ca83a1f7f0757"
1 = {map entry} "$createdAt" -> "2023-09-10T21:55:40.691+00:00"
2 = {map entry} "$updatedAt" -> "2023-09-10T22:34:16.739+00:00"
3 = {map entry} "$permissions" -> [_GrowableList]
4 = {map entry} "assignedToCategories" -> [_GrowableList]
5 = {map entry} "content" -> [_GrowableList]
6 = {map entry} "mediaThumbnail" -> [_Map]
7 = {map entry} "$databaseId" -> "main_database"
8 = {map entry} "$collectionId" -> "content_entry"
I selected mediaThumbnail relation, but content and assignedToCategories are returned as well
in comparison this select:
select([\"$id\",\"$createdAt\",\"$updatedAt\",\"$permissions\"])
returns
0 = {map entry} "$id" -> "64fe3b5ca83a1f7f0757"
1 = {map entry} "$createdAt" -> "2023-09-10T21:55:40.691+00:00"
2 = {map entry} "$updatedAt" -> "2023-09-10T22:34:16.739+00:00"
3 = {map entry} "$permissions" -> [_GrowableList]
4 = {map entry} "$databaseId" -> "main_database"
5 = {map entry} "$collectionId" -> "content_entry"
It because queries are not available in relationship at the moment
[CLOSED] Selecting single relationship attribute with Query.select returns all relationships
Recommended threads
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Appwrite cloud DB server error 500
Getting this error
- appwrite indexes not working (?
i have this index: ``` "indexes": [ { "key": "single-user-per-event", "type": "unique", ...