Only delete the graphql
attribute on the field parameter.
This commit is contained in:
parent
7bccbd1277
commit
97dae8cf82
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user