robrichard / graphql-fields

Turns GraphQLResolveInfo into a map of the requested fields
MIT License
350 stars 30 forks source link

Extract arguments with the same field #29

Closed mathieuletyrant closed 5 years ago

mathieuletyrant commented 5 years ago

In some case we use the same field with a different arguments, and with the lib we can't because we keep the last value.

queryName(id: "") {
    id
    variables52: variables(year: 52) {
      name
    }
    variables40: variables(year: 40) {
      name
    }
}