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

Does not take variables in processed arguments into account #22

Closed
JohannesMerz opened this issue Feb 25, 2019 · 1 comment
Closed

Does not take variables in processed arguments into account #22

JohannesMerz opened this issue Feb 25, 2019 · 1 comment

Comments

@JohannesMerz
Copy link

Variables that are used as arguments are not added as values when processArguments is set to true.

If i have a query like

query($first: Int!) {
  a {
    bs(first: $first) {
      bName
    }
}

with variables of

{ 
  "first" : 10
}

the arguments for b wont have any value :

 "__arguments": [
  {
    "first": {
      "kind": "Variable"
    }
  }
]

Where putting the vars into the query string directly does.

query {
  a {
    bs(first: 10) {
      bName
    }
}

=>

 "__arguments": [
  {
    "first": {
      "kind": "Variable",
     "value": 10
    }
  }
]
@robrichard
Copy link
Owner

fixed in 2.0.2

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