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

Implement UniqueArgumentNames validator #9

Merged
merged 1 commit into from
Jul 11, 2018
Merged

Conversation

vektah
Copy link
Owner

@vektah vektah commented Jul 11, 2018

No description provided.

@vektah vektah merged commit 9027a48 into master Jul 11, 2018
@vektah vektah deleted the unique-argument-names branch July 11, 2018 01:16
StevenACoffman pushed a commit that referenced this pull request Jan 31, 2022
The following query was giving panic because here we passed ID as an int which is expected to be a string.

query allStories {
      queryUser(filter: {
        id: 22
      }) {
        stories {
          id
          text
        }
      }
    }

We now added input coercion so that the ID type value will be coerced to string type. And if we give a slice of integer values or the required type is [ID] then that will be coerced to slice of integer values.
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.

1 participant