{"id":21392464,"url":"https://github.com/kevinrodriguez-io/flutter_graphql_hooks","last_synced_at":"2025-07-13T18:31:24.436Z","repository":{"id":56829485,"uuid":"336140317","full_name":"kevinrodriguez-io/flutter_graphql_hooks","owner":"kevinrodriguez-io","description":"Apollo-like set of hooks to be used with flutter","archived":false,"fork":false,"pushed_at":"2021-09-14T07:43:08.000Z","size":22,"stargazers_count":10,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-08-20T21:58:35.986Z","etag":null,"topics":["apollo","flutter-graphql","flutter-graphql-hooks","hooks"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevinrodriguez-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-05T02:23:35.000Z","updated_at":"2022-12-01T12:35:24.000Z","dependencies_parsed_at":"2022-08-26T13:51:21.756Z","dependency_job_id":null,"html_url":"https://github.com/kevinrodriguez-io/flutter_graphql_hooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinrodriguez-io%2Fflutter_graphql_hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinrodriguez-io%2Fflutter_graphql_hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinrodriguez-io%2Fflutter_graphql_hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinrodriguez-io%2Fflutter_graphql_hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinrodriguez-io","download_url":"https://codeload.github.com/kevinrodriguez-io/flutter_graphql_hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225908686,"owners_count":17543479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apollo","flutter-graphql","flutter-graphql-hooks","hooks"],"created_at":"2024-11-22T13:40:53.641Z","updated_at":"2024-11-22T13:40:54.272Z","avatar_url":"https://github.com/kevinrodriguez-io.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eFlutter GraphQL Hooks 🪝\u003c/h1\u003e\n\u003cpre\u003eLOOKING FOR MAINTAINERS\u003c/pre\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/kevinrodriguez-io/flutter_graphql_hooks/watchers\"\u003e\u003cimg src=\"https://img.shields.io/github/watchers/kevinrodriguez-io/flutter_graphql_hooks?style=social\" alt=\"Watch on GitHub\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/kevinrodriguez-io/flutter_graphql_hooks/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/kevinrodriguez-io/flutter_graphql_hooks?style=social\" alt=\"Star on GitHub\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://twitter.com/intent/tweet?text=Check out flutter_graphql_hooks 🪝, an apollo-like set of hooks for flutter. https://github.com/kevinrodriguez-io/flutter_graphql_hooks\"\u003e\u003cimg src=\"https://img.shields.io/twitter/url/https/github.com/kevinrodriguez-io/flutter_graphql_hooks.svg?style=social\" alt=\"Tweet!\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Introduction\n\nThis package exposes an apollo-like set of hooks to be used with flutter,\nit's meant to be used together with the `graphql_flutter` package and it's\nbased on it's latest implementation.\n\nIt can be used along with `artemis` to provide strongly typed hooks, example:\n\n```dart\nfinal query = GetRoomsQuery(variables: GetRoomsArguments(limit: 10, offset: 0));\n\nfinal rooms = useQuery(QueryOptions(\n  document: query.document,\n  variables: query.getVariablesMap(),\n));\n\nfinal loading = rooms.result.loading;\nfinal error = rooms.result.error;\nfinal data = query.parse(rooms.result.data);\n// Data will no longer be a [Map\u003cString, dynamic\u003e] and will have proper typings! \n```\n\n# Installing\n\n```yml\ndependencies:\n  flutter_graphql_hooks:\n```\n\n# Notes\n\nIn order to use the hooks, a `GraphqlProvider` must exist on the build context.\nOtherwise you'll need to manually pass the client in the hook as a parameter like:\n\n```dart\nfinal rooms = useQuery(QueryOptions(\n  document: query.document,\n  variables: query.getVariablesMap(),\n), client: myGraphqlClient);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinrodriguez-io%2Fflutter_graphql_hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinrodriguez-io%2Fflutter_graphql_hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinrodriguez-io%2Fflutter_graphql_hooks/lists"}