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 623 forks source link

Support for @include and @skip directives #1246

Closed mlars84 closed 1 year ago

mlars84 commented 2 years ago

Is your feature request related to a problem? Please describe. Attempting to use the @include or @skip directives result in a PartialDataException. This would be a great feature for re-using queries in multiple places where some fields may not be needed in all cases.

Describe the solution you'd like I'd like the @include directive to work as one would expect:

Describe alternatives you've considered An alternative might be to create separate queries for each use-case, but the defeats the goal of reusability.

Additional context Thanks for considering!

budde377 commented 2 years ago

Good idea! This issue should be directed to the normalize library, which is throwing this error.

mlars84 commented 2 years ago

Ps, these directives are defined and required by the core GraphQL specification, so their support in the library is essential!

budde377 commented 2 years ago

They are supported in this library, you need to create an issue on normalize

vincenzopalazzo commented 1 year ago

Issue reported https://github.com/gql-dart/ferry/issues/468

vincenzopalazzo commented 1 year ago

Ok it required just to upgrade the normalize version https://github.com/gql-dart/ferry/issues/468#issuecomment-1371920877