Package graphql.normalized.nf
Class NormalizedOperationToAstCompiler
java.lang.Object
graphql.normalized.nf.NormalizedOperationToAstCompiler
This class can take a list of
NormalizedField
s and compiling out a
normalised operation Document
that would represent how those fields
may be executed.
This is essentially the reverse of NormalizedDocumentFactory
which takes
operation text and makes NormalizedField
s from it, this takes NormalizedField
s
and makes operation text from it.
You could for example send that operation text onto to some other graphql server if it has the same schema as the one provided.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The result is aDocument
and a map of variables that would go with that document. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompileToDocument
(GraphQLSchema schema, NormalizedOperation normalizedOperation) compileToDocument
(GraphQLSchema graphQLSchema, GraphQLObjectType rootType, NormalizedField singleRootField, @Nullable String operationName, OperationDefinition.Operation operationKind) compileToDocument
(GraphQLSchema graphQLSchema, GraphQLObjectType rootType, List<NormalizedField> rootFields, @Nullable String operationName, OperationDefinition.Operation operationKind)
-
Constructor Details
-
NormalizedOperationToAstCompiler
public NormalizedOperationToAstCompiler()
-
-
Method Details
-
compileToDocument
public static NormalizedOperationToAstCompiler.CompilerResult compileToDocument(GraphQLSchema graphQLSchema, GraphQLObjectType rootType, List<NormalizedField> rootFields, @Nullable String operationName, OperationDefinition.Operation operationKind) -
compileToDocument
public static NormalizedOperationToAstCompiler.CompilerResult compileToDocument(GraphQLSchema graphQLSchema, GraphQLObjectType rootType, NormalizedField singleRootField, @Nullable String operationName, OperationDefinition.Operation operationKind) -
compileToDocument
public static NormalizedOperationToAstCompiler.CompilerResult compileToDocument(GraphQLSchema schema, NormalizedOperation normalizedOperation)
-