Commit db72dc8
committed
GraphQLSchemaProvider#copyReadOnly: simpler, supports CodeRegistry
Fixes support for the code registry (as opposed to type resolvers & data fetchers attached directly to schema objects).
```
Caused by: graphql.AssertException: There must be a type resolver for union ExampleUnion
at graphql.Assert.assertNotNull(Assert.java:15) ~[graphql-java-12.0.jar:na]
[…]
at graphql.schema.GraphQLCodeRegistry$Builder.getTypeResolver(GraphQLCodeRegistry.java:230) ~[graphql-java-12.0.jar:na]
[…]
at graphql.schema.SchemaUtil.extractCodeFromTypes(SchemaUtil.java:112) ~[graphql-java-12.0.jar:na]
[…]
at graphql.schema.GraphQLCodeRegistry.transform(GraphQLCodeRegistry.java:139) ~[graphql-java-12.0.jar:na]
at graphql.schema.GraphQLSchema$Builder.build(GraphQLSchema.java:413) ~[graphql-java-12.0.jar:na]
at graphql.servlet.GraphQLSchemaProvider.copyReadOnly(GraphQLSchemaProvider.java:15) ~[graphql-java-servlet-7.4.1.jar:na]
at graphql.servlet.DefaultGraphQLSchemaProvider.<init>(DefaultGraphQLSchemaProvider.java:17) ~[graphql-java-servlet-7.4.1.jar:na]
at com.oembedler.moon.graphql.boot.GraphQLWebAutoConfiguration.graphQLSchemaProvider(GraphQLWebAutoConfiguration.java:162) ~[graphql-spring-boot-autoconfigure-5.8.1.jar:na]
```
Signed-off-by: Pierre Carrier <pc@rrier.ca>1 parent b8c567a commit db72dc8
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 12 | + | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
0 commit comments