Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for aggregation queries #258

Open
Andy2003 opened this issue Nov 21, 2021 · 0 comments
Open

Add support for aggregation queries #258

Andy2003 opened this issue Nov 21, 2021 · 0 comments
Assignees
Labels
API-Alignment Align the API with the one defined by @neo4j/graphql

Comments

@Andy2003
Copy link
Collaborator

Augment schema with fields for aggregation queries.

Given schema

type Movie {
    id: ID
    actorCount: Int
    averageRating: Float
    isActive: Boolean
}

Should generate the following augmented schema (partial example with only relevant fields and types below):

type Query {
  moviesAggregate(where: MovieWhere): MovieAggregateSelection!
  moviesCount(where: MovieWhere): Int!
}

type MovieAggregateSelection {
  actorCount: IntAggregateSelection!
  averageRating: FloatAggregateSelection!
  count: Int!
  id: IDAggregateSelection!
}

type FloatAggregateSelection {
  average: Float!
  max: Float!
  min: Float!
}

type IDAggregateSelection {
  longest: ID!
  shortest: ID!
}

type IntAggregateSelection {
  average: Float!
  max: Int!
  min: Int!
}
@Andy2003 Andy2003 added the API-Alignment Align the API with the one defined by @neo4j/graphql label Nov 21, 2021
@Andy2003 Andy2003 self-assigned this Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API-Alignment Align the API with the one defined by @neo4j/graphql
Projects
None yet
Development

No branches or pull requests

1 participant