I'm using ferry with generated classes for requests, variables, data, etc.
I'm getting an error when I try to run in debug mode that "Error: 'update' is already declared in this scope."
I only have one update mutation and it looks like this:
mutation UpdateHarvestGroup($harvestGroup: UpdateHarvestGroup!) {
HarvestGroup {
update(input: $harvestGroup) {
id
}
}
}
This is occurring in my **.data.gql.g.dart file so it's a generated file.
I don't really have much to go on as this was generated from my graphQL schema and queries, which did not present an error before trying to run. Happy to add more detail, just not sure what's relevant. Thanks for the help!
Try renaming your mutation. Ferry creates a method named "update" in the generated code.