expected identifier, found keyword
Error in derive(Interface) with field(name = "type",..)
#1140
Labels
question
Further information is requested
I have a schema with interface which has field name
type
.and the rust definition would be as below.
Then I got a error in the derive macro.
I'd say it caused by calling method which name is same as rust keyword like
self.type()
in the token stream.changing the field name to
r#type
didn't solve it.Is there anyway to workaround this issue?
versions
async-graphql:4.0.15
The text was updated successfully, but these errors were encountered: