graphql.schema.GraphQLTypeReference Maven / Gradle / Ivy
package graphql.schema;
import static graphql.Assert.assertNotNull;
/**
* 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 {
private final String name;
public GraphQLTypeReference(String name) {
assertNotNull(name, "name can't be null");
this.name = name;
}
public String getName() {
return name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy