Package io.jmix.graphql.spqr
Class SpqrSchemaGenerator
java.lang.Object
io.leangen.graphql.GraphQLSchemaGenerator
io.jmix.graphql.spqr.BaseSpqrSchemaGenerator
io.jmix.graphql.spqr.SpqrSchemaGenerator
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.graphql.spqr.BaseSpqrSchemaGenerator
BaseSpqrSchemaGenerator.CodeRegistryBuilder, BaseSpqrSchemaGenerator.CodeRegistryMerger, BaseSpqrSchemaGenerator.DelegatingResolverInterceptorFactory, BaseSpqrSchemaGenerator.GlobalResolverInterceptorFactory, BaseSpqrSchemaGenerator.MemoizedValueMapperFactory, BaseSpqrSchemaGenerator.NoOpCodeRegistryBuilder -
Field Summary
FieldsFields inherited from class io.jmix.graphql.spqr.BaseSpqrSchemaGenerator
abstractInputHandler, additionalDirectives, additionalDirectiveTypes, additionalTypes, argumentInjectorProviders, basePackages, codeRegistry, directiveBuilder, environment, implDiscoveryStrategy, inclusionStrategy, inputConverterProviders, inputFieldBuilderProviders, inputFieldBuilders, interceptorFactory, interceptorFactoryProviders, interfaceStrategy, javaDeprecationConfig, messageBundle, moduleProviders, mutationRoot, mutationRootDescription, nestedResolverBuilderProviders, operationBuilder, operationSourceRegistry, outputConverterProviders, processors, queryRoot, queryRootDescription, relayMappingConfig, resolverBuilderProviders, scalarStrategy, schemaTransformerProviders, subscriptionRoot, subscriptionRootDescription, transformers, typeComparator, typeComparatorProviders, typeInfoGenerator, typeMapperProviders, typeMappers, typeTransformer, valueMapperFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongraphql.schema.GraphQLSchemagenerate()Generates a GraphQL schema based on the results of analysis of the registered sources.protected voidinit()Sets the default values for all settings not configured explicitly, ensuring the builder is in a valid statewithDataFetchers(graphql.schema.GraphQLCodeRegistry dataFetchers) Methods inherited from class io.jmix.graphql.spqr.BaseSpqrSchemaGenerator
applyProcessors, checkForDuplicates, checkForEmptyOrDuplicates, checkType, checkType, isRealType, merge, withAbstractInputHandler, withAbstractInputTypeResolution, withAdditionalDirectives, withAdditionalDirectives, withAdditionalDirectives, withAdditionalTypes, withAdditionalTypes, withAdditionalTypes, withArgumentInjectors, withArgumentInjectors, withBasePackages, withDirectiveBuilder, withImplementationDiscoveryStrategy, withInclusionStrategy, withInputConverters, withInputConverters, withInputConvertersPrepended, withInputFieldBuilders, withInputFieldBuilders, withInterfaceMappingStrategy, withJavaDeprecationReason, withJavaDeprecationRespected, withModules, withModules, withNestedResolverBuilders, withNestedResolverBuilders, withOperationBuilder, withOperationsFromBean, withOperationsFromBean, withOperationsFromBean, withOperationsFromBean, withOperationsFromSingleton, withOperationsFromSingleton, withOperationsFromSingleton, withOperationsFromSingletons, withOperationsFromType, withOperationsFromType, withOperationsFromTypes, withOperationsFromTypes, withOutputConverters, withOutputConverters, withOutputConvertersPrepended, withRelayCompliantMutations, withRelayCompliantMutations, withRelayConnectionCheckRelaxed, withRelayNodeInterfaceInference, withResolverBuilders, withResolverBuilders, withResolverInterceptorFactories, withResolverInterceptors, withScalarDeserializationStrategy, withSchemaProcessors, withSchemaTransformers, withSchemaTransformers, withStringInterpolation, withTypeAdapters, withTypeComparators, withTypeInfoGenerator, withTypeMappers, withTypeMappers, withTypeMappersPrepended, withTypeMappersPrepended, withTypeTransformer, withValueMapperFactoryMethods inherited from class io.leangen.graphql.GraphQLSchemaGenerator
withAdditionalTypes, withTypeComparators
-
Field Details
-
genericGenerator
-
-
Constructor Details
-
SpqrSchemaGenerator
-
-
Method Details
-
withDataFetchers
-
generate
public graphql.schema.GraphQLSchema generate()Description copied from class:BaseSpqrSchemaGeneratorGenerates a GraphQL schema based on the results of analysis of the registered sources. All exposed methods will be mapped as queries or mutations and all Java types referred to by those methods will be mapped to corresponding GraphQL types. Such schema can then be used to constructGraphQLinstances. See the example in the description of this class.- Overrides:
generatein classBaseSpqrSchemaGenerator- Returns:
- A GraphQL schema
-
init
protected void init()Description copied from class:BaseSpqrSchemaGeneratorSets the default values for all settings not configured explicitly, ensuring the builder is in a valid state- Overrides:
initin classBaseSpqrSchemaGenerator
-