Skip to content

Implement UniqueArgumentNames validator#9

Merged
vektah merged 1 commit into
masterfrom
unique-argument-names
Jul 11, 2018
Merged

Implement UniqueArgumentNames validator#9
vektah merged 1 commit into
masterfrom
unique-argument-names

Conversation

@vektah

@vektah vektah commented Jul 11, 2018

Copy link
Copy Markdown
Owner

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