Pay attention to not override properties when using a group by subquery #1047
Unanswered
noxan
asked this question in
Show and tell
Replies: 1 comment 1 reply
-
Yeah, the same is true for computeds, which is a pretty common gotcha with just as opaque of a type error. I'll look into adding some more guidance in the grouping docs to point out this gotcha. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
An example to retrieve a single object (movie) with a grouped multi link property (actors).
Warning: You must name the grouped property differently than the property itself else your query fails.
Given the following schema
My attempt so far, but it fails due to
actors
overriding theactors
property.So use a different name than
actors
to make it work.Took me quite a while to understand my mistake, hope it will save you some time :)
Especially the in editor (vscode) type warnings are not very helpful unless you find the error message within all of this:
Beta Was this translation helpful? Give feedback.
All reactions