Skip to content

Commit ae83817

Browse files
fix: macro generated code
1 parent 36cca4d commit ae83817

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

graphql_client_codegen/src/generated_module.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@ impl GeneratedModule<'_> {
112112
}
113113

114114
}
115+
fn build_batch_query(variables: Vec<Self::Variables>) -> Vec<graphql_client::QueryBody<Self::Variables>> {
116+
variables.into_iter().map(|variable|
117+
graphql_client::QueryBody {
118+
variables: variable,
119+
query: #module_name::QUERY,
120+
operation_name: #module_name::OPERATION_NAME,
121+
}
122+
).collect()
123+
124+
}
115125
}
116126
))
117127
}

0 commit comments

Comments
 (0)