| Package | Description |
|---|---|
| io.leangen.graphql |
| Modifier and Type | Method and Description |
|---|---|
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withAdditionalTypes(Collection<graphql.schema.GraphQLType> additionalTypes) |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withArgumentInjectors(ArgumentInjector... argumentInjectors) |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withBasePackage(String basePackage) |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withDefaultArgumentInjectors() |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withDefaultConverters()
Registers all built-in
InputConverters and OutputConverters. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withDefaultInputConverters() |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withDefaultMappers()
Registers all built-in
TypeMappers |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withDefaultNestedResolverBuilders()
Registers default resolver builders.
|
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withDefaultOutputConverters() |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withDefaultResolverBuilders()
Registers default resolver builders.
|
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withDefaults()
|
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withInputConverters(InputConverter<?,?>... inputConverters)
Registers custom
InputConverters to be used for converting values provided by the GraphQL client
into those expected by the corresponding Java method. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withInputFieldDiscoveryStrategy(InputFieldDiscoveryStrategy inputFieldStrategy) |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withInterfaceMappingStrategy(InterfaceMappingStrategy interfaceStrategy) |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withMetaDataGenerator(TypeInfoGenerator typeInfoGenerator) |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withNestedOperationsFromTypes(AnnotatedType... types)
The same as
withNestedOperationsFromTypes(Type...) except that an AnnotatedType is used,
so any extra annotations on the type (not only those directly on the class) are kept. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withNestedOperationsFromTypes(Type... types)
Register a type to be scanned for exposed methods, using the globally registered builders.
|
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withNestedResolverBuilders(ResolverBuilder... resolverBuilders)
Globally registers
ResolverBuilders to be used for sources that don't have explicitly assigned builders. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withNestedResolverBuildersForType(AnnotatedType querySourceType,
ResolverBuilder... resolverBuilders)
Same as
withNestedResolverBuildersForType(Type, ResolverBuilder...) except that an AnnotatedType is used
so any extra annotations on the type (not only those directly on the class) are kept. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withNestedResolverBuildersForType(Type querySourceType,
ResolverBuilder... resolverBuilders)
Register
querySourceType type to be scanned for exposed methods, using the provided ResolverBuilders. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withOperationsFromSingleton(Object serviceSingleton)
Register
serviceSingleton as a singleton OperationSource,
with its class (obtained via Object.getClass()) as its runtime type and with the globally registered
ResolverBuilders. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withOperationsFromSingleton(Object serviceSingleton,
AnnotatedType beanType)
Same as
withOperationsFromSingleton(Object, Type), except that an AnnotatedType is used as
serviceSingleton's runtime type. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withOperationsFromSingleton(Object serviceSingleton,
AnnotatedType beanType,
ResolverBuilder... builders)
Same as
withOperationsFromSingleton(Object, AnnotatedType) except that custom ResolverBuilders will be used
to look through beanType for methods to be exposed. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withOperationsFromSingleton(Object serviceSingleton,
ResolverBuilder... builders)
Same as
withOperationsFromSingleton(Object) except that custom ResolverBuilders will be used
to look through beanType for methods to be exposed. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withOperationsFromSingleton(Object serviceSingleton,
Type beanType)
Register
serviceSingleton as a singleton OperationSource,
with beanType as its runtime type and with the globally registered ResolverBuilders. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withOperationsFromSingleton(Object serviceSingleton,
Type beanType,
ResolverBuilder... builders)
Same as
withOperationsFromSingleton(Object, Type) except that custom ResolverBuilders will be used
to look through beanType for methods to be exposed. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withOperationsFromSingletons(Object... serviceSingletons)
Same as
withOperationsFromSingleton(Object) except that multiple beans can be registered at the same time. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withOperationsFromType(AnnotatedType serviceType) |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withOperationsFromType(AnnotatedType serviceType,
ResolverBuilder... builders) |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withOperationsFromType(Type serviceType) |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withOperationsFromType(Type serviceType,
ResolverBuilder... builders) |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withOperationsFromTypes(AnnotatedType... serviceType) |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withOperationsFromTypes(Type... serviceType) |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withOutputConverters(OutputConverter<?,?>... outputConverters)
Registers custom
OutputConverters to be used for converting values returned by the exposed Java method
into those expected by the GraphQL client. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withRelayCompliantMutations()
Sets a flag that all mutations should be mapped in a Relay-compliant way,
using the default name and description for output wrapper fields.
|
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withRelayCompliantMutations(String wrapperFieldName,
String wrapperFieldDescription)
Sets a flag that all mutations should be mapped in a Relay-compliant way,
using the default name and description for output wrapper fields.
|
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withResolverBuilders(ResolverBuilder... resolverBuilders)
Globally registers
ResolverBuilders to be used for sources that don't have explicitly assigned builders. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withScalarMappingStrategy(ScalarMappingStrategy scalarStrategy) |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withSchemaProcessors(GraphQLSchemaProcessor... processors)
Registers custom schema processors that can perform arbitrary transformations on the schema just before it is built.
|
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withTypeAdapters(AbstractTypeAdapter<?,?>... typeAdapters)
Type adapters (instances of
AbstractTypeAdapter) are both type mappers and bi-directional converters,
implementing TypeMapper, InputConverter and OutputConverter. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withTypeMappers(TypeMapper... typeMappers)
Registers custom
TypeMappers to be used for mapping Java type to GraphQL types. |
GraphQLSchemaGenerator |
GraphQLSchemaGenerator.withValueMapperFactory(ValueMapperFactory valueMapperFactory) |
Copyright © 2016–2017. All rights reserved.