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 6 months ago • 1 comments

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