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

graphql.schema.GraphQLTypeReference Maven / Gradle / Ivy

The newest version!
package graphql.schema;


import static graphql.Assert.assertValidName;

/**
 * A special type to allow a object/interface types to reference itself. It's replaced with the real type
 * object when the schema is build.
 *
 */
public class GraphQLTypeReference implements GraphQLType, GraphQLOutputType, GraphQLInputType {

    private final String name;

    public GraphQLTypeReference(String name) {
    	assertValidName(name);
        this.name = name;
    }

    public String getName() {
        return name;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy