Only delete the `graphql` attribute on the field parameter.
@@ -92,7 +92,7 @@ pub fn generate(
parse_graphql_attrs::<args::Argument>(&pat.attrs)?
.unwrap_or_default(),
));
- pat.attrs.clear();
+ remove_graphql_attrs(&mut pat.attrs);
}
(arg, Type::Reference(TypeReference { elem, .. })) => {
if let Type::Path(path) = elem.as_ref() {
@@ -280,7 +280,7 @@ pub fn generate(
parse_graphql_attrs::<args::Argument>(&pat.attrs)?
.unwrap_or_default(),
));
- pat.attrs.clear();
+ remove_graphql_attrs(&mut pat.attrs);
}
(arg, Type::Reference(TypeReference { elem, .. })) => {
if let Type::Path(path) = elem.as_ref() {
