Package graphql.normalized.nf
Class NormalizedOperationToAstCompiler
- java.lang.Object
-
- graphql.normalized.nf.NormalizedOperationToAstCompiler
-
@ExperimentalApi public class NormalizedOperationToAstCompiler extends java.lang.Object
This class can take a list ofNormalizedField
s and compiling out a normalised operationDocument
that would represent how those fields may be executed.This is essentially the reverse of
NormalizedDocumentFactory
which takes operation text and makesNormalizedField
s from it, this takesNormalizedField
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 Classes Modifier and Type Class Description static class
NormalizedOperationToAstCompiler.CompilerResult
The result is aDocument
and a map of variables that would go with that document.
-
Constructor Summary
Constructors Constructor Description NormalizedOperationToAstCompiler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NormalizedOperationToAstCompiler.CompilerResult
compileToDocument(@NotNull GraphQLSchema schema, NormalizedOperation normalizedOperation)
-
-
-
Method Detail
-
compileToDocument
public static NormalizedOperationToAstCompiler.CompilerResult compileToDocument(@NotNull @NotNull GraphQLSchema schema, NormalizedOperation normalizedOperation)
-
-