graphql / graphql/graphql-spec

Aggregate functions in GraphQLList object

Open
#808 3 comments 1 reaction 0 assignees View on GitHub
👻 Needs Champion
Dominant language
JavaScript
Stars
14.6k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Addition of aggregate functions in GraphQLList Object such as in SQL:

Example:
In order to implement something like:
```sql
SELECT post_id, likes, count(likes) FROM posts;
```
> where likes stores the user_ids of users who liked a certain post

as
```GraphQL
query AllPosts {
posts {
post_id
likes
count(likes)
}
}
```

and for `GraphQLList` type data, provide a `sum(values)` function and so on...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.