Package graphql.normalized.nf
Class NormalizedOperationToAstCompiler
java.lang.Object
graphql.normalized.nf.NormalizedOperationToAstCompiler
This class can take a list of
NormalizedFields 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 NormalizedFields from it, this takes NormalizedFields
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 classThe result is aDocumentand 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)
-