We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e237572 commit b431f3eCopy full SHA for b431f3e
graphql_client_codegen/src/codegen/inputs.rs
@@ -24,7 +24,10 @@ pub(super) fn generate_input_object_definitions(
24
.variables
25
.iter()
26
.enumerate()
27
- .find(|(_, v)| v.r#type.id.as_input_id().is_some_and(|i| i == input_id))
+ .find(|(_, v)| match v.r#type.id.as_input_id() {
28
+ Some(i) => i == input_id,
29
+ None => false,
30
+ })
31
.and_then(|(index, _)| custom_variable_types.get(index));
32
if let Some(custom_type) = custom_variable_type {
33
generate_type_def(input, options, custom_type)
0 commit comments