Package graphql.schema
-
Interface Summary Interface Description Coercing<I,O> The Coercing interface is used byGraphQLScalarTypes to parse and serialize object values.DataFetcher<T> A data fetcher is responsible for returning a data value back for a given graphql field.DataFetcherFactory<T> A DataFetcherFactory allows a level of indirection in providingDataFetchers for graphql fields.DataFetchingEnvironment A DataFetchingEnvironment instance of passed to aDataFetcheras a execution context and its the place where you can find out information to help you resolve a data value given a graphql field inputDataFetchingFieldSelectionSet This class allows you to retrieve the selection set of fields that have been asked for when theDataFetcherwas invoked.GraphQLCompositeType GraphQLDirectiveContainer Represents a graphql runtime type that can haveGraphQLAppliedDirectives.GraphQLFieldsContainer Types that can contain output fields are marked with this interfaceGraphQLImplementingType A GraphQLType which can implement interfacesGraphQLInputFieldsContainer Types that can contain input fields are marked with this interfaceGraphQLInputSchemaElement A schema element that is concerned with input.GraphQLInputType Input types represent those set of types that are allowed to be accepted as graphql mutation input, as opposed toGraphQLOutputTypes which can only be used as graphql response output.GraphQLInputValueDefinition Named schema elements that contain input type information.GraphQLModifiedType A modified type wraps another graphql type and modifies it behaviorGraphQLNamedInputType Input types represent those set of types that are allowed to be accepted as graphql mutation input, as opposed toGraphQLOutputTypes which can only be used as graphql response output.GraphQLNamedOutputType Output types represent those set of types that are allowed to be sent back as a graphql response, as opposed toGraphQLInputTypes which can only be used as graphql mutation input.GraphQLNamedSchemaElement A Schema element which has a name and also a description and AST Node which it is based on.GraphQLNamedType A GraphQLType which is also a named element, which means it has a getName() method.GraphQLNullableType GraphQLOutputType Output types represent those set of types that are allowed to be sent back as a graphql response, as opposed toGraphQLInputTypes which can only be used as graphql mutation input.GraphQLSchemaElement A GraphQLSchema can be viewed as a graph of GraphQLSchemaElement.GraphQLType A type inside the GraphQLSchema.GraphqlTypeComparatorRegistry GraphQLTypeVisitor GraphQLTypeVisitor can be used to visit all the elements of a schema (types, fields, directives and so on) in a visitor pattern.GraphQLUnmodifiedType LightDataFetcher<T> ALightDataFetcheris a specialised version ofDataFetcherthat is passed more lightweight arguments when it is asked to fetch values.SelectedField ASelectedFieldrepresents a field that occurred in a query selection set during execution and they are returned from using theDataFetchingFieldSelectionSetinterface returned viaDataFetchingEnvironment.getSelectionSet()TypeResolver This is called during type resolution to work out what concreteGraphQLObjectTypeshould be used dynamically during runtime forGraphQLInterfaceTypes andGraphQLUnionTypes -
Class Summary Class Description AsyncDataFetcher<T> A modifier type that indicates the underlying data fetcher is run asynchronouslyCodeRegistryVisitor This ensure that all fields have data fetchers and that unions and interfaces have type resolversCoercingParseLiteralException.Builder CoercingParseValueException.Builder CoercingSerializeException.Builder DataFetcherFactories A helper forDataFetcherFactoryDataFetcherFactoryEnvironment Deprecated. This class will go away at some point in the future since its pointless wrapper of aGraphQLFieldDefinitionDataFetcherFactoryEnvironment.Builder DataFetchingEnvironmentImpl DataFetchingEnvironmentImpl.Builder DataFetchingFieldSelectionSetImpl DefaultGraphqlTypeComparatorRegistry Associates aComparatorwith aGraphqlTypeComparatorEnvironmentto control the scope in which theComparatorcan be applied.DefaultGraphqlTypeComparatorRegistry.Builder DelegatingDataFetchingEnvironment DelegatingDataFetchingEnvironment implementsDataFetchingEnvironmentby delegating to an underlying instance.FieldCoordinates A field in graphql is uniquely located within a parent type and hence code elements likeDataFetcherneed to be specified using those coordinates.GraphQLAppliedDirective An applied directive represents the instance of a directive that is applied to a schema element, as opposed to it definitionGraphQLAppliedDirective.Builder GraphQLAppliedDirectiveArgument This represents the argument values that can be placed on anGraphQLAppliedDirective.GraphQLAppliedDirectiveArgument.Builder GraphQLArgument This defines an argument that can be supplied to a graphql field (viaGraphQLFieldDefinition.GraphQLArgument.Builder GraphQLCodeRegistry TheGraphQLCodeRegistryholds that execution code that is associated with graphql types, namely theDataFetchers associated with fields, theTypeResolvers associated with abstract types and theGraphqlFieldVisibilityGraphQLCodeRegistry.Builder GraphQLDirective A directive can be used to modify the behavior of a graphql field or type.GraphQLDirective.Builder GraphqlDirectivesContainerTypeBuilder<B extends GraphqlDirectivesContainerTypeBuilder<B,BASE>,BASE extends GraphqlTypeBuilder<BASE>> GraphqlElementParentTree This represents a hierarchy an graphql runtime element upwards to its associated parent elements.GraphQLEnumType A graphql enumeration type has a limited set of values.GraphQLEnumType.Builder GraphQLEnumValueDefinition A graphql enumeration type has a limited set of values and this defines one of those unique valuesGraphQLEnumValueDefinition.Builder GraphQLFieldDefinition Fields are the ways you get data values in graphql and a field definition represents a field, its type, the arguments it takes and theDataFetcherused to get data values for that field.GraphQLFieldDefinition.Builder GraphQLInputObjectField Input objects defined viaGraphQLInputObjectTypecontains these input fields.GraphQLInputObjectField.Builder GraphQLInputObjectType graphql clearly delineates between the types of objects that represent the output of a query and input objects that can be fed into a graphql mutation.GraphQLInputObjectType.Builder GraphQLInterfaceType In graphql, an interface is an abstract type that defines the set of fields that a type must include to implement that interface.GraphQLInterfaceType.Builder GraphQLList A modified type that indicates there is a list of the underlying wrapped type, eg a list of strings or a list of booleans.GraphQLNonNull A modified type that indicates there the underlying wrapped type will not be null.GraphQLObjectType This is the work horse type and represents an object with one or more field values that can be retrieved by the graphql system.GraphQLObjectType.Builder GraphQLScalarType A scalar type is a leaf node in the graphql tree of types.GraphQLScalarType.Builder GraphQLSchema The schema represents the combined type system of the graphql engine.GraphQLSchema.Builder GraphQLSchema.BuilderWithoutTypes GraphQLSchemaElementAdapter GraphqlTypeBuilder<B extends GraphqlTypeBuilder<B>> GraphqlTypeComparatorEnvironment Defines the scope to control where the registeredComparatorcan be applied.GraphqlTypeComparatorEnvironment.Builder GraphqlTypeComparators GraphQLTypeReference A special type to allow a object/interface types to reference itself.GraphQLTypeResolvingVisitor GraphQLTypeUtil A utility class that helps work withGraphQLTypesGraphQLTypeVisitorStub Base implementation ofGraphQLTypeVisitorfor convenience.GraphQLUnionType A union type is a polymorphic type that dynamically represents one of more concrete object types.GraphQLUnionType.Builder InputValueWithState Used by @GraphQLArgumentandGraphQLInputObjectFieldto represent different value states.PropertyDataFetcher<T> This is the default data fetcher used in graphql-java, and it will examine maps, records and POJO java beans for values that match the desired name, typically the field name, or it will use a provided function to obtain values.PropertyDataFetcherHelper This class is the guts of a property data fetcher and also used in AST code to turn in memory java objects into AST elementsPropertyFetchingImpl A re-usable class that can fetch from POJOsSchemaElementChildrenContainer SchemaElementChildrenContainer.Builder SchemaTransformer Transforms aGraphQLSchemaobject by calling bac on a provided visitor.SchemaTraverser SingletonPropertyDataFetcher<T> TheSingletonPropertyDataFetcheris much like thePropertyDataFetcherexcept that it is designed to only ever fetch properties via the name of the field passed in.StaticDataFetcher ADataFetcherthat always returns the same valueTypeResolverProxy -
Exception Summary Exception Description CoercingParseLiteralException CoercingParseValueException CoercingSerializeException