This is a demo app that showcases the use of GraphQL toolchain in Flutter.
- generate dart types and classes which covers GraphQL API queries
- local schema update
- autocomplete and validation of GraphQL queries
- ability to work with API without waiting of backend implementation
- Android Studio or VSCode
- JS Graphql for Android Studio
- Prisma for VSCode
I’m happy to find that there are a lot of positive changes in GraphQL ecosystem for flutter.
As a result we get fully functioning and pretty stable approach to work with GraphQL using
full power of types and autocompletion
-
Start install
graphql-fakernpm install -g graphql-fakeror
yarn global add graphql-faker -
Start local
graphqlservergraphql-faker fake.schema --open -
Dart types update
pub run build_runner buildor
flutter pub run build_runner build -
Start app
flutter run