You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to build an API that uses query parameter names which clash with reserved words in Dart, such as "class" or "extension". Due to this, I need to choose an alternative parameter name when declaring the query function but would like to remap it to the original argument name from the GraphQL spec.
I need to build an API that uses query parameter names which clash with reserved words in Dart, such as "class" or "extension". Due to this, I need to choose an alternative parameter name when declaring the query function but would like to remap it to the original argument name from the GraphQL spec.
Example:
@query(name: "AccountList")
Function<Account?> accountList(
@GraphQLArg(name: "class")
String? class_
) {...}
The text was updated successfully, but these errors were encountered: