Skip to content

Conversation

pcarrier
Copy link
Contributor

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 [email protected]

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 <[email protected]>
@pcarrier
Copy link
Contributor Author

pcarrier commented May 18, 2019

Oops! Collides with #183 (but takes a different approach).

@oliemansm
Copy link
Member

@pcarrier Thanks anyway! Looks bit cleaner indeed, so I'll merge this one.

@oliemansm oliemansm merged commit 142dace into graphql-java-kickstart:master May 21, 2019
@oliemansm oliemansm added this to the 7.5.0 milestone May 21, 2019
@pcarrier pcarrier deleted the pcarrier/simpler_ro branch May 22, 2019 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants