We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00f8390 commit eef142aCopy full SHA for eef142a
src/main/java/graphql/annotations/GraphQLAnnotations.java
@@ -379,7 +379,12 @@ public GraphQLObjectType.Builder getObjectBuilder(Class<?> object) throws GraphQ
379
380
for (Class<?> iface : object.getInterfaces()) {
381
if (iface.getAnnotation(GraphQLTypeResolver.class) != null) {
382
- builder.withInterface((GraphQLInterfaceType) getInterface(iface));
+ String ifaceName = getTypeName(iface);
383
+ if (processing.contains(ifaceName)) {
384
+ builder.withInterface(new GraphQLTypeReference(ifaceName));
385
+ } else {
386
+ builder.withInterface((GraphQLInterfaceType) getInterface(iface));
387
+ }
388
builder.fields(getExtensionFields(iface, fieldsDefined));
389
}
390
0 commit comments