Bloc: Graphql flutter bloc

Created on 26 Sep 2020  路  4Comments  路  Source: felangel/bloc

Is your feature request related to a problem? Please describe.
Add a sample documentation how to work with graphql + bloc

Describe the solution you'd like
I wrote a library that helps to wrap graphql requests in bloc pattern. I can add a corresponding section to the documentation.

example question

Most helpful comment

Thanks a lot! I鈥檒l make a PR

All 4 comments

I agree,
on an advance usage. I believe that graphql should be on the level of http package(what I'm saying is to only use graphql client) as a repository. but on a basic example, i think it's fine to use the widgets provided by graphql_flutter.

I'm on an advance usage(because there is no guarantee that when will our repository gets replaced later on).

Hi @vasilich6107 馃憢

Thanks for your feature request.

Not sure if you're aware but there's already a graphql with bloc example available here.

Just as a side note, your library is enforcing the use of freezed, which not everyone is using. Also the error handling could be improved towards something more generic.

Hi @vasilich6107 馃憢
Thanks for opening an issue!

As @narcodico mentioned, there is already a graphql example included. If you'd like to add a link to your library in the README feel free to open a pull request 馃憤

Closing for now but don't hesitate to comment with any additional thoughts/questions and I'm happy to continue the conversation 馃槃

Thanks a lot! I鈥檒l make a PR

Was this page helpful?
0 / 5 - 0 ratings

Related issues

1AlexFix1 picture 1AlexFix1  路  3Comments

wheel1992 picture wheel1992  路  3Comments

krusek picture krusek  路  3Comments

timtraversy picture timtraversy  路  3Comments

frankrod picture frankrod  路  3Comments