You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional environment information:
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.
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.
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.
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: