Package graphql.normalized
Class ExecutableNormalizedOperationFactory
- java.lang.Object
-
- graphql.normalized.ExecutableNormalizedOperationFactory
-
@PublicApi public class ExecutableNormalizedOperationFactory extends java.lang.Object
This factory can create aExecutableNormalizedOperation
which represents what would be executed during a given graphql operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExecutableNormalizedOperationFactory.CollectNFResult
-
Constructor Summary
Constructors Constructor Description ExecutableNormalizedOperationFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutableNormalizedOperationFactory.CollectNFResult
collectFromMergedField(FieldCollectorNormalizedQueryParams parameters, ExecutableNormalizedField executableNormalizedField, com.google.common.collect.ImmutableList<graphql.normalized.ExecutableNormalizedOperationFactory.FieldAndAstParent> mergedField, int level)
ExecutableNormalizedOperationFactory.CollectNFResult
collectFromOperation(FieldCollectorNormalizedQueryParams parameters, OperationDefinition operationDefinition, GraphQLObjectType rootType)
static ExecutableNormalizedOperation
createExecutableNormalizedOperation(GraphQLSchema graphQLSchema, Document document, java.lang.String operationName, CoercedVariables coercedVariableValues)
This will create a runtime representation of the graphql operation that would be executed in a runtime sense.static ExecutableNormalizedOperation
createExecutableNormalizedOperation(GraphQLSchema graphQLSchema, OperationDefinition operationDefinition, java.util.Map<java.lang.String,FragmentDefinition> fragments, CoercedVariables coercedVariableValues)
This will create a runtime representation of the graphql operation that would be executed in a runtime sense.static ExecutableNormalizedOperation
createExecutableNormalizedOperationWithRawVariables(GraphQLSchema graphQLSchema, Document document, java.lang.String operationName, RawVariables rawVariables)
This will create a runtime representation of the graphql operation that would be executed in a runtime sense.static ExecutableNormalizedOperation
createExecutableNormalizedOperationWithRawVariables(GraphQLSchema graphQLSchema, Document document, java.lang.String operationName, RawVariables rawVariables, GraphQLContext graphQLContext, java.util.Locale locale)
This will create a runtime representation of the graphql operation that would be executed in a runtime sense.
-
-
-
Method Detail
-
createExecutableNormalizedOperation
public static ExecutableNormalizedOperation createExecutableNormalizedOperation(GraphQLSchema graphQLSchema, Document document, java.lang.String operationName, CoercedVariables coercedVariableValues)
This will create a runtime representation of the graphql operation that would be executed in a runtime sense.- Parameters:
graphQLSchema
- the schema to be useddocument
- theDocument
holding the operation textoperationName
- the operation name to usecoercedVariableValues
- the coerced variables to use- Returns:
- a runtime representation of the graphql operation.
-
createExecutableNormalizedOperation
public static ExecutableNormalizedOperation createExecutableNormalizedOperation(GraphQLSchema graphQLSchema, OperationDefinition operationDefinition, java.util.Map<java.lang.String,FragmentDefinition> fragments, CoercedVariables coercedVariableValues)
This will create a runtime representation of the graphql operation that would be executed in a runtime sense.- Parameters:
graphQLSchema
- the schema to be usedoperationDefinition
- the operation to be executedfragments
- a set of fragments associated with the operationcoercedVariableValues
- the coerced variables to use- Returns:
- a runtime representation of the graphql operation.
-
createExecutableNormalizedOperationWithRawVariables
public static ExecutableNormalizedOperation createExecutableNormalizedOperationWithRawVariables(GraphQLSchema graphQLSchema, Document document, java.lang.String operationName, RawVariables rawVariables)
This will create a runtime representation of the graphql operation that would be executed in a runtime sense.- Parameters:
graphQLSchema
- the schema to be useddocument
- theDocument
holding the operation textoperationName
- the operation name to userawVariables
- the raw variables to be coerced- Returns:
- a runtime representation of the graphql operation.
-
createExecutableNormalizedOperationWithRawVariables
public static ExecutableNormalizedOperation createExecutableNormalizedOperationWithRawVariables(GraphQLSchema graphQLSchema, Document document, java.lang.String operationName, RawVariables rawVariables, GraphQLContext graphQLContext, java.util.Locale locale)
This will create a runtime representation of the graphql operation that would be executed in a runtime sense.- Parameters:
graphQLSchema
- the schema to be useddocument
- theDocument
holding the operation textoperationName
- the operation name to userawVariables
- the raw variables that have not yet been coercedlocale
- theLocale
to use during coerciongraphQLContext
- theGraphQLContext
to use during coercion- Returns:
- a runtime representation of the graphql operation.
-
collectFromMergedField
public ExecutableNormalizedOperationFactory.CollectNFResult collectFromMergedField(FieldCollectorNormalizedQueryParams parameters, ExecutableNormalizedField executableNormalizedField, com.google.common.collect.ImmutableList<graphql.normalized.ExecutableNormalizedOperationFactory.FieldAndAstParent> mergedField, int level)
-
collectFromOperation
public ExecutableNormalizedOperationFactory.CollectNFResult collectFromOperation(FieldCollectorNormalizedQueryParams parameters, OperationDefinition operationDefinition, GraphQLObjectType rootType)
-
-