Skip to content

Query directive is ignored when compile from ENO to AST #3292

@russellyou

Description

@russellyou

At the moment query directive is saved in ExecutableNormalizedOperation

     Map<ExecutableNormalizedField, QueryDirectives> normalizedFieldToQueryDirectives,

But when calling

    ExecutableNormalizedOperationToAstCompiler.compileToDocument(@NotNull GraphQLSchema schema,
                                                   @NotNull OperationDefinition.Operation operationKind,
                                                   @Nullable String operationName,
                                                   @NotNull List<ExecutableNormalizedField> topLevelFields,
                                                   @Nullable VariablePredicate variablePredicate)  

The queryDirectives are not passed in as argument and are ignored.

Suggestion:
Should write queryDirecitves back to document in ExecutableNormalizedOperationToAstCompiler.compileToDocument method

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions