Skip to content

Using response templating with graphql requests #23

@UltimateLobster

Description

@UltimateLobster

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions