Skip to content

Handle extended input #398

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

Merged
merged 2 commits into from
May 21, 2020
Merged

Handle extended input #398

merged 2 commits into from
May 21, 2020

Conversation

lburja
Copy link
Contributor

@lburja lburja commented May 6, 2020

Resolves #353

Checklist

  • Pull requests follows the contribution guide
  • New or modified functionality is covered by tests

Description

The GraphQL spec allows extend input, but the graphql-java-tools library did not handle this case.

This commit, enables the following to work:

type Mutation {
    save(input: UserInput!): Boolean
}

input UserInput {
    name: String                        
}

extend input UserInput {
    password: String
}

# and later on:
# mutation {
#    saveUser(input: {name: "John", password: "secret"})
# }

Copy link
Member

@vojtapol vojtapol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

@vojtapol vojtapol merged commit 66326e2 into graphql-java-kickstart:master May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

extend input fails to extend
2 participants