The Wayback Machine - https://web.archive.org/web/20200611030247/https://github.com/graphile/postgraphile/issues/1240
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

respect variables in query string when using application/graphql with POST #1240

Open
dobe opened this issue Mar 2, 2020 · 0 comments
Open

respect variables in query string when using application/graphql with POST #1240

dobe opened this issue Mar 2, 2020 · 0 comments
Labels

Comments

@dobe
Copy link

@dobe dobe commented Mar 2, 2020

I'm submitting a ...

  • bug report
  • [ X] feature request
  • question

PostGraphile version: 4.4.4

postgraphile should honor variables in query string as defined in https://github.com/graphql/express-graphql#http-usage when the query is provided as post body.

with the following example request postgraphile does not honor the variables in the query string:

curl -XPOST 'localhost:5000/graphql?variables={"id":1}' -H 'content-type: application/graphql'  -d '
query MyQuery($id: Int) {
  something(id:$id) {
    name
  }
}
'

it would be nice if postgraphile could do this out of the box in order to support static query bodies from the client.

@benjie benjie added the feature label Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.