zino-hofmann / graphql-flutter

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
https://zino-hofmann.github.io/graphql-flutter
MIT License
3.25k stars 622 forks source link

How can we set parameter to non-final in graphQL auto-generated response? #1345

Open ghost opened 1 year ago

ghost commented 1 year ago

Getting error 'is_like' can't be used as a setter because it's final. How can we set it to a non-final in graphQL auto-generated response?

I want to change the value of is_like on user action, but the auto-generated graphQL response throws the above error. Below is the query used in my project

query GetMatchList($offset: Int!, $limit: Int!, ){ getMatchList( input: { offset: $offset limit: $limit } ) { meta { status message message_code status_code } data { uuid match_title is_like } pagination { offset limit total_count } } }

Thanks