-
Notifications
You must be signed in to change notification settings - Fork 453
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 POST - Query configuration user body values are not overriding default values. #801
Labels
Comments
This issue is marked as stale because it has been open over 90 days with no activity. Remove the stale label or comment or this will be closed in 15 days. |
Hi @vox-tone , the example in the documentation was misleading, it has been corrected. |
This issue is marked as stale because it has been open over 90 days with no activity. Remove the stale label or comment or this will be closed in 15 days. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment info:
Using docker image devopsfaith/krakend:2.4.6 calling postgraphile backend.
Describe the bug
GraphQL POST - Query configuration user body values are not overriding default values provided in configuration file.
I am following the instructions on GraphQL POST + Query here...
https://www.krakend.io/docs/backends/graphql/#post--query
KrakenD is calling out to the backend GraphQL endpoint (postgraphile) and returning data with the default variable values set in the configuration file. However, when sending POST requests with values designed to override the default GraphQL query values, KrakenD does not replace the values.
I have successfully configured KrakenD to work with URL variables
( Eg. http://localhost:8080/data/foo "variables": { "id": "{id}"}
I have also successfully configured KrakenD to work when the query 'type' is 'mutation'. However, when "type": "query", the user variables presented in the body do not replace the defaults.
Your configuration file:
Commands used
How did you start the software?
Calling the endpoint using curl
Expected behavior
GraphQL query is made with variables replaced with those provided in the user body.
Logs
Additional context
contents of test.graphql
The text was updated successfully, but these errors were encountered: