You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: graphql-dgs-spring-graphql/src/main/kotlin/com/netflix/graphql/dgs/springgraphql/autoconfig/DgsSpringGraphQLAutoConfiguration.kt
@Deprecated("The mockProviders argument is no longer supported")
@@ -824,7 +826,7 @@ class DgsSchemaProvider
824
826
.typeResolver { env:TypeResolutionEnvironment->
825
827
val instance = env.getObject<Any>()
826
828
val resolvedType = env.schema.getObjectType(instance::class.java.simpleName)
827
-
resolvedType
829
+
resolvedType?: fallbackTypeResolver?.getType(env)
828
830
?:throwInvalidTypeResolverException(
829
831
"The default type resolver could not find a suitable Java type for GraphQL $typeName type `$it`. Provide a @DgsTypeResolver for `${instance::class.java.simpleName}`.",
0 commit comments