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

regex matching for graphql query variables #19

Open
devi-s-kr opened this issue Dec 15, 2023 · 0 comments
Open

regex matching for graphql query variables #19

devi-s-kr opened this issue Dec 15, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@devi-s-kr
Copy link

Proposal

Regex matching would be useful for the Graphql api that I'm working on.
I'm mocking a graphql API using wiremock. I'm using the graphql Extension for wiremock.
My request body looks something like this (variables":{"storesIds":[3888],"startDate":"2023-12-10","endDate":"2023-12-16") and when I create the mapping file for this query, it seems like it has to be an exact match for the Variables and Query, the variables change based on the week that we are on so regex for those values would really help.

something like (variables":{"storesIds":[([-\w])+],"startDate":"([-\w])+","endDate":"([-\w])+") which I have used in request matching like urlPathPattern.

References

No response

@devi-s-kr devi-s-kr added the enhancement New feature or request label Dec 15, 2023
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

1 participant