Skip to content

Commit

Permalink
fix: move correct directives
Browse files Browse the repository at this point in the history
  • Loading branch information
erikwrede committed May 18, 2024
1 parent ea37768 commit 7d8e430
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ast/gql_core/mirror_converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl MirrorConversionContext {
.operation_type
.get_operation_type(operation.operation_type);

let directives = operation.directives.iter().map(|directive| {
let directives: Vec<DirectiveNode> = operation.directives.iter().map(|directive| {
self.convert_directive_to_core_directive(py, directive)
}).collect();

Expand All @@ -275,12 +275,16 @@ impl MirrorConversionContext {
self.convert_value_to_core_value(py, value)
});

let variable_directives = variable.directives.iter().map(|directive| {
self.convert_directive_to_core_directive(py, directive)
}).collect();

VariableDefinitionNode {
variable: VariableNode {
name,
},
default_value,
directives,
directives: variable_directives,
r#type: variable_type,
}
}).collect();
Expand Down

0 comments on commit 7d8e430

Please sign in to comment.