#Select related collection attributes and id

7 messages · Page 1 of 1 (latest)

analog plank
#

I know that queries on relations are not supported. But u can select some attributes of a related collection like this
[Query.select([ "$id", "name", "articles.name", "articles.description"])],
This returns me specified attributes but if I add article.$id it doesnt work. It only works if select only article.$id.
Is there any way or workaround to fetch id AND some attributes?

desert lion
#

Could you share the relationship and your collection structure?

south pumice
analog plank
analog plank
#

also, collectionId and databaseId seems to be always present in relation

desert lion