Interface GraphQLOutputResolver

All Superinterfaces:
GraphQLResolver
All Known Subinterfaces:
TypedGraphQLOutputResolver
All Known Implementing Classes:
ArrayResolver, ConvertingTypeResolver, EnumResolver, InterfaceResolver, IterableResolver, ObjectTypeResolver, OptionalDoubleResolver, OptionalIntResolver, OptionalLongResolver, OptionalResolver, ScalarResolver, SpecificScalarResolver, UnionResolver

public interface GraphQLOutputResolver
extends GraphQLResolver
Resolver responsible for creating a GraphQLOutputType for a certain Java type.
  • Method Summary

    Modifier and Type Method Description
    ResolvedGraphQLType<? extends graphql.schema.GraphQLOutputType> resolveOutput​(GraphQLOutputEncounter encounter)
    Resolve the GraphQLType 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.
  • Method Details

    • supportsOutput

      boolean supportsOutput​(se.l4.commons.types.reflect.TypeRef type)
      Perform a check if this output resolver might support the given type. This method is expected to perform a minimal check, such as for the TypeRef.getErasedType() and annotations on the type. More detailed checks should be done in resolveOutput(GraphQLOutputEncounter).
      Returns:
    • resolveOutput

      ResolvedGraphQLType<? extends graphql.schema.GraphQLOutputType> resolveOutput​(GraphQLOutputEncounter encounter)
      Resolve the GraphQLType of the given type.
      Parameters:
      encounter -
      Returns: