Class ExecutableNormalizedOperationFactory


  • @PublicApi
    public class ExecutableNormalizedOperationFactory
    extends java.lang.Object
    This factory can create a ExecutableNormalizedOperation which represents what would be executed during a given graphql operation.
    • 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 used
        document - the Document holding the operation text
        operationName - the operation name to use
        coercedVariableValues - 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 used
        operationDefinition - the operation to be executed
        fragments - a set of fragments associated with the operation
        coercedVariableValues - 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,
                                                                                        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 used
        operationDefinition - the operation to be executed
        fragments - a set of fragments associated with the operation
        coercedVariableValues - the coerced variables to use
        options - the options 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 used
        document - the Document holding the operation text
        operationName - the operation name to use
        rawVariables - 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 used
        document - the Document holding the operation text
        operationName - the operation name to use
        rawVariables - the raw variables that have not yet been coerced
        locale - the Locale to use during coercion
        graphQLContext - the GraphQLContext to use during coercion
        Returns:
        a runtime representation of the graphql operation.