From 44e29cefb2bc4f45efd79c8d199916f9129be347 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Sat, 19 Jul 2025 08:40:55 +0200 Subject: [PATCH] Updated Request Matching GraphQLMatcher (markdown) --- Request-Matching-GraphQLMatcher.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Request-Matching-GraphQLMatcher.md b/Request-Matching-GraphQLMatcher.md index cb6ec84..4dd9d4e 100644 --- a/Request-Matching-GraphQLMatcher.md +++ b/Request-Matching-GraphQLMatcher.md @@ -1,7 +1,8 @@ -## GraphQL Schema (GraphQLMatcher) -Can be used to match a GraphQL Query or Mutation using GraphQAL Schema. +# GraphQL Schema (GraphQLMatcher) +Can be used to match a GraphQL `Query` using GraphQL Schema (`MUtation` is not yet supported I think...) -#### C# option +## Define a mapping which includes a GraphQL Schema which should be used for matching the body: +### C# ```csharp var TestSchema = @" input MessageInput { @@ -45,7 +46,7 @@ server ); ``` -#### JSON Mapping option +### JSON Mapping ``` json { "Guid": "5a36d1c1-11df-4976-90f9-22cae5dadb38", @@ -71,4 +72,7 @@ server } } } -``` \ No newline at end of file +``` + +## Use / Test +When WireMock.Net is started (see above) with that GraphQL Schema, a client can send GraphQL \ No newline at end of file