wiremock-graphql-extension icon indicating copy to clipboard operation
wiremock-graphql-extension copied to clipboard

Using response templating with graphql requests

Open UltimateLobster opened this issue 1 year ago • 1 comments
trafficstars

Proposal

I'm kinda new to wiremock so it may be already possible, but I wish to be able to use response templating when working with graphql stubs.

However, I don't see anyway in which I can access certain parts of the graphql body without parsing it myself. Are there builtin helpers that allow me to do this? If not, would it be possible to add these?

I imagine it as something like a request.graphql.variables which can be used in the response template to fetch the variables used for the graphql query.

References

No response

UltimateLobster avatar Aug 27 '24 05:08 UltimateLobster

Sorry for the late response.

I believe implementing this feature would be quite challenging for this extension, as it would require communication between multiple extensions.

nilwurtz avatar Oct 07 '24 14:10 nilwurtz