diff --git a/.all-contributorsrc b/.all-contributorsrc index 9c15168c9..5f93c0198 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -1,6 +1,6 @@ { - "projectName": "graphql-flutter", - "projectOwner": "zino-app", + "projectName": "flutter-graphql", + "projectOwner": "juicycleff", "repoType": "github", "repoHost": "https://github.com", "files": [ @@ -9,6 +9,20 @@ "imageSize": 100, "commit": true, "contributors": [ + { + "login": "juicycleff", + "name": "Rex Raphael", + "avatar_url": "https://avatars2.githubusercontent.com/u/4757453?v=4", + "profile": "http://rexraphael.com", + "contributions": [ + "bug", + "code", + "doc", + "example", + "ideas", + "review" + ] + }, { "login": "eusdima", "name": "Eustatiu Dima", diff --git a/README.md b/README.md index 163d0e684..d7a0fba6e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# GraphQL Flutter +# Flutter GraphQL [![version][version-badge]][package] [![MIT License][license-badge]][license] @@ -10,7 +10,7 @@ ## Table of Contents -- [GraphQL Flutter](#graphql-flutter) +- [Flutter GraphQL](#flutter-graphql) - [Table of Contents](#table-of-contents) - [About this project](#about-this-project) - [Installation](#installation) @@ -25,7 +25,7 @@ - [Roadmap](#roadmap) - [Contributing](#contributing) - [New Contributors](#new-contributors) - - [Base Contributors](#base-contributors) + - [Founding Contributors](#founding-contributors) ## About this project @@ -35,6 +35,10 @@ This project combines the benefits of GraphQL with the benefits of `Streams` in The project took inspriation from the [Apollo GraphQL client](https://github.com/apollographql/apollo-client), great work guys! +**Note: Still in alpha** + +**Docs is coming soon** + ## Installation First depend on the library by adding this to your packages `pubspec.yaml`: @@ -152,7 +156,7 @@ String typenameDataIdFromObject(Object object) { return null; } ``` -However note that **`graphql-flutter` does not inject __typename into operations** the way apollo does, so if you aren't careful to request them in your query, this normalization scheme is not possible. +However note that **`flutter-graphql` does not inject __typename into operations** the way apollo does, so if you aren't careful to request them in your query, this normalization scheme is not possible. ### Queries @@ -333,42 +337,39 @@ This is currently our roadmap, please feel free to request additions/changes. | Optimistic results | πŸ”œ | | Client state management | πŸ”œ | | Modularity | πŸ”œ | +| Documentation | πŸ”œ | ## Contributing -Feel free to open a PR with any suggestions! We'll be actively working on the library ourselves. +Feel free to open a PR with any suggestions! We'll be actively working on the library ourselves. If you need control to the repo, please contact me Rex Raphael. Please fork and send your PRs to the v.1.0.0 branch. ## New Contributors -This package was originally created and published by the engineers at [Zino App BV](https://zinoapp.com). Since then the community has helped to make it even more useful for even more developers. - -Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): - -Coming soon +This package was originally created and published by the engineers at [Zino App BV](https://zinoapp.com) and with contributions from the community. However the original project has been un-maintained for months and I choose to maintain and keep this project running with other developers. -## Base Contributors +| [
Eustatiu Dima](http://rexraphael.com)
[πŸ›](https://github.com/juicycleff/flutter-graphql/issues?q=author%3Ajuicycleff "Bug reports") [πŸ’»](https://github.com/juicycleff/flutter-graphql/commits?author=eusdima "Code") [πŸ“–](https://github.com/juicycleff/flutter-graphql/commits?author=eusdima "Documentation") [πŸ’‘](#example-eusdima "Examples") [πŸ€”](#ideas-juicycleff "Ideas, Planning, & Feedback") [πŸ‘€](#review-eusdima "Reviewed Pull Requests") | -This package was originally created and published by the engineers at [Zino App BV](https://zinoapp.com). Since then the community has helped to make it even more useful for even more developers. +## Founding Contributors Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): -| [
Eustatiu Dima](http://eusdima.com)
[πŸ›](https://github.com/zino-app/graphql-flutter/issues?q=author%3Aeusdima "Bug reports") [πŸ’»](https://github.com/zino-app/graphql-flutter/commits?author=eusdima "Code") [πŸ“–](https://github.com/zino-app/graphql-flutter/commits?author=eusdima "Documentation") [πŸ’‘](#example-eusdima "Examples") [πŸ€”](#ideas-eusdima "Ideas, Planning, & Feedback") [πŸ‘€](#review-eusdima "Reviewed Pull Requests") | [
Zino Hofmann](https://github.com/HofmannZ)
[πŸ›](https://github.com/zino-app/graphql-flutter/issues?q=author%3AHofmannZ "Bug reports") [πŸ’»](https://github.com/zino-app/graphql-flutter/commits?author=HofmannZ "Code") [πŸ“–](https://github.com/zino-app/graphql-flutter/commits?author=HofmannZ "Documentation") [πŸ’‘](#example-HofmannZ "Examples") [πŸ€”](#ideas-HofmannZ "Ideas, Planning, & Feedback") [πŸš‡](#infra-HofmannZ "Infrastructure (Hosting, Build-Tools, etc)") [πŸ‘€](#review-HofmannZ "Reviewed Pull Requests") | [
Harkirat Saluja](https://github.com/jinxac)
[πŸ“–](https://github.com/zino-app/graphql-flutter/commits?author=jinxac "Documentation") [πŸ€”](#ideas-jinxac "Ideas, Planning, & Feedback") | [
Chris Muthig](https://github.com/camuthig)
[πŸ’»](https://github.com/zino-app/graphql-flutter/commits?author=camuthig "Code") [πŸ“–](https://github.com/zino-app/graphql-flutter/commits?author=camuthig "Documentation") [πŸ’‘](#example-camuthig "Examples") [πŸ€”](#ideas-camuthig "Ideas, Planning, & Feedback") | [
Cal Pratt](http://stackoverflow.com/users/3280538/flkes)
[πŸ›](https://github.com/zino-app/graphql-flutter/issues?q=author%3Acal-pratt "Bug reports") [πŸ’»](https://github.com/zino-app/graphql-flutter/commits?author=cal-pratt "Code") [πŸ“–](https://github.com/zino-app/graphql-flutter/commits?author=cal-pratt "Documentation") [πŸ’‘](#example-cal-pratt "Examples") [πŸ€”](#ideas-cal-pratt "Ideas, Planning, & Feedback") | [
Miroslav Valkovic-Madjer](http://madjer.info)
[πŸ’»](https://github.com/zino-app/graphql-flutter/commits?author=mmadjer "Code") | [
Aleksandar Faraj](https://github.com/AleksandarFaraj)
[πŸ›](https://github.com/zino-app/graphql-flutter/issues?q=author%3AAleksandarFaraj "Bug reports") | +| [
Eustatiu Dima](http://eusdima.com)
[πŸ›](https://github.com/zino-app/flutter-graphql/issues?q=author%3Aeusdima "Bug reports") [πŸ’»](https://github.com/zino-app/flutter-graphql/commits?author=eusdima "Code") [πŸ“–](https://github.com/zino-app/flutter-graphql/commits?author=eusdima "Documentation") [πŸ’‘](#example-eusdima "Examples") [πŸ€”](#ideas-eusdima "Ideas, Planning, & Feedback") [πŸ‘€](#review-eusdima "Reviewed Pull Requests") | [
Zino Hofmann](https://github.com/HofmannZ)
[πŸ›](https://github.com/zino-app/flutter-graphql/issues?q=author%3AHofmannZ "Bug reports") [πŸ’»](https://github.com/zino-app/flutter-graphql/commits?author=HofmannZ "Code") [πŸ“–](https://github.com/zino-app/flutter-graphql/commits?author=HofmannZ "Documentation") [πŸ’‘](#example-HofmannZ "Examples") [πŸ€”](#ideas-HofmannZ "Ideas, Planning, & Feedback") [πŸš‡](#infra-HofmannZ "Infrastructure (Hosting, Build-Tools, etc)") [πŸ‘€](#review-HofmannZ "Reviewed Pull Requests") | [
Harkirat Saluja](https://github.com/jinxac)
[πŸ“–](https://github.com/zino-app/flutter-graphql/commits?author=jinxac "Documentation") [πŸ€”](#ideas-jinxac "Ideas, Planning, & Feedback") | [
Chris Muthig](https://github.com/camuthig)
[πŸ’»](https://github.com/zino-app/flutter-graphql/commits?author=camuthig "Code") [πŸ“–](https://github.com/zino-app/flutter-graphql/commits?author=camuthig "Documentation") [πŸ’‘](#example-camuthig "Examples") [πŸ€”](#ideas-camuthig "Ideas, Planning, & Feedback") | [
Cal Pratt](http://stackoverflow.com/users/3280538/flkes)
[πŸ›](https://github.com/zino-app/flutter-graphql/issues?q=author%3Acal-pratt "Bug reports") [πŸ’»](https://github.com/zino-app/flutter-graphql/commits?author=cal-pratt "Code") [πŸ“–](https://github.com/zino-app/flutter-graphql/commits?author=cal-pratt "Documentation") [πŸ’‘](#example-cal-pratt "Examples") [πŸ€”](#ideas-cal-pratt "Ideas, Planning, & Feedback") | [
Miroslav Valkovic-Madjer](http://madjer.info)
[πŸ’»](https://github.com/zino-app/flutter-graphql/commits?author=mmadjer "Code") | [
Aleksandar Faraj](https://github.com/AleksandarFaraj)
[πŸ›](https://github.com/zino-app/flutter-graphql/issues?q=author%3AAleksandarFaraj "Bug reports") | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| [
Arnaud Delcasse](https://www.scity.coop)
[πŸ›](https://github.com/zino-app/graphql-flutter/issues?q=author%3Aadelcasse "Bug reports") [πŸ’»](https://github.com/zino-app/graphql-flutter/commits?author=adelcasse "Code") | [
Dustin Graham](https://github.com/dustin-graham)
[πŸ›](https://github.com/zino-app/graphql-flutter/issues?q=author%3Adustin-graham "Bug reports") [πŸ’»](https://github.com/zino-app/graphql-flutter/commits?author=dustin-graham "Code") | [
FΓ‘bio Carneiro](https://github.com/fabiocarneiro)
[πŸ›](https://github.com/zino-app/graphql-flutter/issues?q=author%3Afabiocarneiro "Bug reports") | [
Gregor](https://github.com/lordgreg)
[πŸ›](https://github.com/zino-app/graphql-flutter/issues?q=author%3Alordgreg "Bug reports") [πŸ’»](https://github.com/zino-app/graphql-flutter/commits?author=lordgreg "Code") [πŸ€”](#ideas-lordgreg "Ideas, Planning, & Feedback") | [
Kolja Esders](https://github.com/kolja-esders)
[πŸ›](https://github.com/zino-app/graphql-flutter/issues?q=author%3Akolja-esders "Bug reports") [πŸ’»](https://github.com/zino-app/graphql-flutter/commits?author=kolja-esders "Code") [πŸ€”](#ideas-kolja-esders "Ideas, Planning, & Feedback") | [
Michael Joseph Rosenthal](https://github.com/micimize)
[πŸ›](https://github.com/zino-app/graphql-flutter/issues?q=author%3Amicimize "Bug reports") [πŸ’»](https://github.com/zino-app/graphql-flutter/commits?author=micimize "Code") [πŸ“–](https://github.com/zino-app/graphql-flutter/commits?author=micimize "Documentation") [πŸ’‘](#example-micimize "Examples") [πŸ€”](#ideas-micimize "Ideas, Planning, & Feedback") [⚠️](https://github.com/zino-app/graphql-flutter/commits?author=micimize "Tests") | [
Igor Borges](http://borges.me/)
[πŸ›](https://github.com/zino-app/graphql-flutter/issues?q=author%3AIgor1201 "Bug reports") [πŸ’»](https://github.com/zino-app/graphql-flutter/commits?author=Igor1201 "Code") | -| [
Rafael Ring](https://github.com/rafaelring)
[πŸ›](https://github.com/zino-app/graphql-flutter/issues?q=author%3Arafaelring "Bug reports") [πŸ’»](https://github.com/zino-app/graphql-flutter/commits?author=rafaelring "Code") | +| [
Arnaud Delcasse](https://www.scity.coop)
[πŸ›](https://github.com/zino-app/flutter-graphql/issues?q=author%3Aadelcasse "Bug reports") [πŸ’»](https://github.com/zino-app/flutter-graphql/commits?author=adelcasse "Code") | [
Dustin Graham](https://github.com/dustin-graham)
[πŸ›](https://github.com/zino-app/flutter-graphql/issues?q=author%3Adustin-graham "Bug reports") [πŸ’»](https://github.com/zino-app/flutter-graphql/commits?author=dustin-graham "Code") | [
FΓ‘bio Carneiro](https://github.com/fabiocarneiro)
[πŸ›](https://github.com/zino-app/flutter-graphql/issues?q=author%3Afabiocarneiro "Bug reports") | [
Gregor](https://github.com/lordgreg)
[πŸ›](https://github.com/zino-app/flutter-graphql/issues?q=author%3Alordgreg "Bug reports") [πŸ’»](https://github.com/zino-app/flutter-graphql/commits?author=lordgreg "Code") [πŸ€”](#ideas-lordgreg "Ideas, Planning, & Feedback") | [
Kolja Esders](https://github.com/kolja-esders)
[πŸ›](https://github.com/zino-app/flutter-graphql/issues?q=author%3Akolja-esders "Bug reports") [πŸ’»](https://github.com/zino-app/flutter-graphql/commits?author=kolja-esders "Code") [πŸ€”](#ideas-kolja-esders "Ideas, Planning, & Feedback") | [
Michael Joseph Rosenthal](https://github.com/micimize)
[πŸ›](https://github.com/zino-app/flutter-graphql/issues?q=author%3Amicimize "Bug reports") [πŸ’»](https://github.com/zino-app/flutter-graphql/commits?author=micimize "Code") [πŸ“–](https://github.com/zino-app/flutter-graphql/commits?author=micimize "Documentation") [πŸ’‘](#example-micimize "Examples") [πŸ€”](#ideas-micimize "Ideas, Planning, & Feedback") [⚠️](https://github.com/zino-app/flutter-graphql/commits?author=micimize "Tests") | [
Igor Borges](http://borges.me/)
[πŸ›](https://github.com/zino-app/flutter-graphql/issues?q=author%3AIgor1201 "Bug reports") [πŸ’»](https://github.com/zino-app/flutter-graphql/commits?author=Igor1201 "Code") | +| [
Rafael Ring](https://github.com/rafaelring)
[πŸ›](https://github.com/zino-app/flutter-graphql/issues?q=author%3Arafaelring "Bug reports") [πŸ’»](https://github.com/zino-app/flutter-graphql/commits?author=rafaelring "Code") | This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind are welcome! [version-badge]: https://img.shields.io/pub/v/flutter_graphql.svg?style=flat-square -[package]: https://pub.dartlang.org/packages/flutter_graphql/versions/1.0.0-alpha.3 -[license-badge]: https://img.shields.io/github/license/zino-app/graphql-flutter.svg?style=flat-square -[license]: https://github.com/zino-app/graphql-flutter/blob/master/LICENSE +[package]: https://pub.dartlang.org/packages/flutter_graphql/versions/1.0.0-alpha.12 +[license-badge]: https://img.shields.io/github/license/juicycleff/flutter-graphql.svg?style=flat-square +[license]: https://github.com/juicycleff/flutter-graphql/blob/master/LICENSE [prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square [prs]: http://makeapullrequest.com -[github-watch-badge]: https://img.shields.io/github/watchers/zino-app/graphql-flutter.svg?style=social -[github-watch]: https://github.com/zino-app/graphql-flutter/watchers -[github-star-badge]: https://img.shields.io/github/stars/zino-app/graphql-flutter.svg?style=social -[github-star]: https://github.com/zino-app/graphql-flutter/stargazers +[github-watch-badge]: https://img.shields.io/github/watchers/juicycleff/flutter-graphql.svg?style=social +[github-watch]: https://github.com/juicycleff/flutter-graphql/watchers +[github-star-badge]: https://img.shields.io/github/stars/juicycleff/flutter-graphql.svg?style=social +[github-star]: https://github.com/juicycleff/flutter-graphql/stargazers diff --git a/lib/src/cache/normalized/record_field_json_adapter.dart b/lib/src/cache/normalized/record_field_json_adapter.dart index 9ef48e643..bce333fe9 100644 --- a/lib/src/cache/normalized/record_field_json_adapter.dart +++ b/lib/src/cache/normalized/record_field_json_adapter.dart @@ -1,4 +1,5 @@ import 'dart:convert'; +import 'dart:core'; class RecordFieldJsonAdapter { diff --git a/pubspec.yaml b/pubspec.yaml index 9b2b3512e..d7d9dfe86 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,6 +15,7 @@ dependencies: uuid: ^1.0.3 sqflite: ^1.1.0 graphql_parser: ^1.1.1 + sqflite: ^1.1.0 dev_dependencies: flutter_test: