mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-24 01:51:02 +01:00
GraphQL - add support for standard scalar types in the schema (#1011)
* GraphQL: register BuiltInTypes * GraphQLMatcher_For_ValidSchema_And_CorrectGraphQL_Mutation_IsMatch
This commit is contained in:
@@ -137,9 +137,14 @@ public class GraphQLMatcher : IStringMatcher
|
||||
}
|
||||
}
|
||||
|
||||
private static ISchema BuildSchema(string schema)
|
||||
private static ISchema BuildSchema(string typeDefinitions)
|
||||
{
|
||||
return Schema.For(schema);
|
||||
var schema = Schema.For(typeDefinitions);
|
||||
|
||||
// #984
|
||||
schema.RegisterTypes(schema.BuiltInTypeMappings.Select(x => x.graphType).ToArray());
|
||||
|
||||
return schema;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user