File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
graphql_client_codegen/src/codegen Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -406,11 +406,15 @@ impl ExpandedField<'_> {
406
406
} ;
407
407
408
408
let is_id = self . field_type == "ID" ;
409
- let is_required = self . field_type_qualifiers . contains ( & GraphqlTypeQualifier :: Required ) ;
409
+ let is_required = self
410
+ . field_type_qualifiers
411
+ . contains ( & GraphqlTypeQualifier :: Required ) ;
410
412
let id_deserialize_with = if is_id && is_required {
411
413
Some ( quote ! ( #[ serde( deserialize_with = "graphql_client::serde_with::deserialize_id" ) ] ) )
412
414
} else if is_id {
413
- Some ( quote ! ( #[ serde( deserialize_with = "graphql_client::serde_with::deserialize_option_id" ) ] ) )
415
+ Some (
416
+ quote ! ( #[ serde( deserialize_with = "graphql_client::serde_with::deserialize_option_id" ) ] ) ,
417
+ )
414
418
} else {
415
419
None
416
420
} ;
You can’t perform that action at this time.
0 commit comments