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

Parse error for empty input objects #74

Closed
kliuless opened this issue Dec 16, 2015 · 2 comments
Closed

Parse error for empty input objects #74

kliuless opened this issue Dec 16, 2015 · 2 comments

Comments

@kliuless
Copy link
Contributor

mutation {
  createItem(input: 
    {
      clientMutationId: "112233",
      nested: {},  # <---- Empty input object can't be parsed
      title: "test mutation"
    }
  ) {
    returnField
  }
}

Error is: #<GraphQL::ParseError: Extra input after last repetition at line 1 char 1.
Please also verify that there can be spaces inside the braces.

@rmosolgo
Copy link
Owner

😬 Sorry!

Fixed by d887f5d. I want to make a refactoring on InterfaceType today then push out a new version!

@kliuless
Copy link
Contributor Author

Thanks for the quick reply. I finally grokked how the parse/transform code works, so I fixed the related transform code in PR #75 .

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

No branches or pull requests

2 participants