All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.schema.TypeResolverProxy Maven / Gradle / Ivy

The newest version!
package graphql.schema;


import graphql.TypeResolutionEnvironment;

public class TypeResolverProxy implements TypeResolver {

    private TypeResolver typeResolver;

    public TypeResolver getTypeResolver() {
        return typeResolver;
    }

    public void setTypeResolver(TypeResolver typeResolver) {
        this.typeResolver = typeResolver;
    }

    @Override
    public GraphQLObjectType getType(TypeResolutionEnvironment env) {
        return typeResolver != null ? typeResolver.getType(env) : null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy