@GraphQLField
public Class1 class1;
@GraphQLField
public Class2 class2;
}
<BUG>@Test @SneakyThrows
public void recursiveTypes() {
</BUG>
DefaultTypeFunction instance = (DefaultTypeFunction) GraphQLAnnotations.getInstance().defaultTypeFunction;
GraphQLType type = instance.apply(Class1.class, Class2.class.getField("class1").getAnnotatedType());

@GraphQLField
public Class2 class2;
}
public static class Class2 {
@GraphQLField
public Class1 class1;
@GraphQLField
public Class2 class2;
}
@Test
public void recursiveTypes() throws Exception {
DefaultTypeFunction instance = (DefaultTypeFunction) GraphQLAnnotations.getInstance().defaultTypeFunction;
GraphQLType type = instance.apply(Class1.class, Class2.class.getField("class1").getAnnotatedType());
