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

Using response templating with graphql requests #23

Open
UltimateLobster opened this issue Aug 27, 2024 · 1 comment
Open

Using response templating with graphql requests #23

UltimateLobster opened this issue Aug 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@UltimateLobster
Copy link

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 UltimateLobster added the enhancement New feature or request label Aug 27, 2024
@nilwurtz
Copy link
Collaborator

nilwurtz commented Oct 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants