Class ArrayResolver
java.lang.Object
se.l4.graphql.binding.internal.resolvers.ArrayResolver
- All Implemented Interfaces:
GraphQLDelegatingResolver
,GraphQLResolver
,GraphQLOutputResolver
public class ArrayResolver extends Object implements GraphQLOutputResolver, GraphQLDelegatingResolver
-
Constructor Summary
Constructors Constructor Description ArrayResolver()
-
Method Summary
Modifier and Type Method Description ResolvedGraphQLType<? extends graphql.schema.GraphQLOutputType>
resolveOutput(GraphQLOutputEncounter encounter)
Resolve theGraphQLType
of the given type.boolean
supportsOutput(se.l4.commons.types.reflect.TypeRef type)
Perform a check if this output resolver might support the given type.String
toString()
-
Constructor Details
-
ArrayResolver
public ArrayResolver()
-
-
Method Details
-
supportsOutput
public boolean supportsOutput(se.l4.commons.types.reflect.TypeRef type)Description copied from interface:GraphQLOutputResolver
Perform a check if this output resolver might support the given type. This method is expected to perform a minimal check, such as for theTypeRef.getErasedType()
and annotations on the type. More detailed checks should be done inGraphQLOutputResolver.resolveOutput(GraphQLOutputEncounter)
.- Specified by:
supportsOutput
in interfaceGraphQLOutputResolver
- Returns:
-
resolveOutput
public ResolvedGraphQLType<? extends graphql.schema.GraphQLOutputType> resolveOutput(GraphQLOutputEncounter encounter)Description copied from interface:GraphQLOutputResolver
Resolve theGraphQLType
of the given type.- Specified by:
resolveOutput
in interfaceGraphQLOutputResolver
- Returns:
-
toString
-