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

GraphQL error when providing a default value for variables #148

Closed
MichaelDeBoey opened this issue May 30, 2017 · 3 comments
Closed

GraphQL error when providing a default value for variables #148

MichaelDeBoey opened this issue May 30, 2017 · 3 comments

Comments

@MichaelDeBoey
Copy link

MichaelDeBoey commented May 30, 2017

Like @fritz-gerneth already mentioned in #144 (comment), you get an error when providing a default value for a variable

query ($username: String = "GovSchwarzenegger"){
  reddit {
    user(username: $username) {
      username
      commentKarma
      createdISO
    }
  }
}
{"errors": [
    {
      "message": "Can\\t recognize token type",
      "location": [
        {
          "line": 1,
          "column": 25
        }
      ]
    }
]}

CC: @viniychuk

@fritz-gerneth
Copy link
Contributor

Would be great if you could check #150 if this works for you or if I missed some parts :)

@MichaelDeBoey
Copy link
Author

@fritz-gerneth I'm not the one who's responsible for the server so I can't test it out unfortunately 😕

@viniychuk
Copy link
Member

fixed in 1.4.3.4

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

3 participants