Aggregating objects within an array #10551
Unanswered
toki-developer
asked this question in
Question
Replies: 1 comment 1 reply
-
@toki-developer I am assuming we are talking about graphql-engine v2. The query as you written it is not possible as is. I would expect that you could do something like: project {
applications {
users_aggregate {
aggregate {
sum {
hogehoge
}
}
}
}
} |
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
-
Is it possible to perform aggregate functions on data structures containing nested objects within arrays?
Example:
We have three tables: projects, applications, and users.
・A project can have multiple applications.
・An application belongs to one user.
I want to retrieve data in the following format.
I want to sum up the "hogehoge" of users by project.
Beta Was this translation helpful? Give feedback.
All reactions