Class ExecutableNormalizedOperationFactory
java.lang.Object
graphql.normalized.ExecutableNormalizedOperationFactory
This factory can create a
ExecutableNormalizedOperation which represents what would be executed
during a given graphql operation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectFromMergedField(FieldCollectorNormalizedQueryParams parameters, ExecutableNormalizedField executableNormalizedField, com.google.common.collect.ImmutableList<graphql.normalized.ExecutableNormalizedOperationFactory.FieldAndAstParent> mergedField, int level) collectFromOperation(FieldCollectorNormalizedQueryParams parameters, OperationDefinition operationDefinition, GraphQLObjectType rootType) createExecutableNormalizedOperation(GraphQLSchema graphQLSchema, Document document, String operationName, CoercedVariables coercedVariableValues) This will create a runtime representation of the graphql operation that would be executed in a runtime sense.createExecutableNormalizedOperation(GraphQLSchema graphQLSchema, OperationDefinition operationDefinition, Map<String, FragmentDefinition> fragments, CoercedVariables coercedVariableValues) This will create a runtime representation of the graphql operation that would be executed in a runtime sense.createExecutableNormalizedOperationWithRawVariables(GraphQLSchema graphQLSchema, Document document, String operationName, RawVariables rawVariables) This will create a runtime representation of the graphql operation that would be executed in a runtime sense.createExecutableNormalizedOperationWithRawVariables(GraphQLSchema graphQLSchema, Document document, String operationName, RawVariables rawVariables, GraphQLContext graphQLContext, Locale locale) This will create a runtime representation of the graphql operation that would be executed in a runtime sense.createExecutableNormalizedOperationWithRawVariables(GraphQLSchema graphQLSchema, Document document, String operationName, RawVariables rawVariables, ExecutableNormalizedOperationFactory.Options options) This will create a runtime representation of the graphql operation that would be executed in a runtime sense.
-
Constructor Details
-
ExecutableNormalizedOperationFactory
public ExecutableNormalizedOperationFactory()
-
-
Method Details
-
createExecutableNormalizedOperation
public static ExecutableNormalizedOperation createExecutableNormalizedOperation(GraphQLSchema graphQLSchema, Document document, 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- theDocumentholding 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, Map<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, 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- theDocumentholding 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, String operationName, RawVariables rawVariables, GraphQLContext graphQLContext, 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- theDocumentholding the operation textoperationName- the operation name to userawVariables- the raw variables that have not yet been coercedgraphQLContext- theGraphQLContextto use during coercionlocale- theLocaleto use during coercion- Returns:
- a runtime representation of the graphql operation.
-
createExecutableNormalizedOperationWithRawVariables
public static ExecutableNormalizedOperation createExecutableNormalizedOperationWithRawVariables(GraphQLSchema graphQLSchema, Document document, String operationName, RawVariables rawVariables, ExecutableNormalizedOperationFactory.Options options) 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- theDocumentholding the operation textoperationName- the operation name to userawVariables- the raw variables that have not yet been coercedoptions- theExecutableNormalizedOperationFactory.Optionsto use for parsing- 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)
-