{"id":15192376,"url":"https://github.com/baianat/vue-gql","last_synced_at":"2025-10-27T17:30:27.798Z","repository":{"id":39481835,"uuid":"195043153","full_name":"baianat/vue-gql","owner":"baianat","description":"A small and fast GraphQL client for Vue.js","archived":false,"fork":false,"pushed_at":"2022-12-10T21:15:40.000Z","size":4402,"stargazers_count":34,"open_issues_count":26,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-28T21:22:48.358Z","etag":null,"topics":["api","api-client","component","component-library","gql","graphql","graphql-client","vue","vuejs"],"latest_commit_sha":null,"homepage":"https://baianat.github.io/vue-gql/","language":"TypeScript","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/baianat.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-07-03T11:48:02.000Z","updated_at":"2024-07-05T21:21:43.000Z","dependencies_parsed_at":"2023-01-26T08:30:46.562Z","dependency_job_id":null,"html_url":"https://github.com/baianat/vue-gql","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baianat%2Fvue-gql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baianat%2Fvue-gql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baianat%2Fvue-gql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baianat%2Fvue-gql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baianat","download_url":"https://codeload.github.com/baianat/vue-gql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219860932,"owners_count":16556009,"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":["api","api-client","component","component-library","gql","graphql","graphql-client","vue","vuejs"],"created_at":"2024-09-27T21:22:57.532Z","updated_at":"2025-10-27T17:30:27.439Z","avatar_url":"https://github.com/baianat.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# vue-gql\n\nA small and fast GraphQL client for Vue.js.\n\n\u003cp align=\"center\"\u003e\n\n[![codecov](https://codecov.io/gh/baianat/vue-gql/branch/master/graph/badge.svg)](https://codecov.io/gh/baianat/vue-gql)\n[![Build Status](https://travis-ci.org/baianat/vue-gql.svg?branch=master)](https://travis-ci.org/baianat/vue-gql)\n[![Bundle Size](https://badgen.net/bundlephobia/minzip/vue-gql)](https://bundlephobia.com/result?p=vue-gql@0.1.0)\n\n\u003c/p\u003e\n\n## Features\n\n- 📦 **Minimal:** Its all you need to query GQL APIs.\n- 🦐 **Tiny:** Very small footprint.\n- 🗄 **Caching:** Simple and convenient query caching by default.\n- 💪 **TypeScript**: Written in Typescript.\n- 💚 Minimal Vue.js Components.\n\n## Documentation\n\nYou can find the full [documentation here](https://baianat.github.io/vue-gql)\n\n## Quick Start\n\nFirst install `vue-gql`:\n\n```bash\nyarn add vue-gql graphql\n\n# or npm\n\nnpm install vue-gql graphql --save\n```\n\nSetup the GraphQL client/endpoint:\n\n```js\nimport Vue from 'vue';\nimport { withProvider, createClient } from 'vue-gql';\nimport App from './App.vue'; // Your App Component\n\nconst client = createClient({\n  url: 'http://localhost:3002/graphql'\n});\n\n// Wrap your app component with the provider component.\nconst AppWithGQL = withProvider(App, client);\n\nnew Vue({\n  render: h =\u003e h(AppWithGQL)\n}).$mount('#app');\n```\n\nNow you can use the `Query` and `Mutation` components to run queries:\n\n```vue\n\u003ctemplate\u003e\n  \u003cQuery query=\"{ posts { title } }\" v-slot=\"{ data, fetching }\"\u003e\n    \u003cdiv v-if=\"fetching\"\u003eIs Fetching ...\u003c/div\u003e\n    \u003cdiv v-else\u003e\n      \u003cpre\u003e{{ data }}\u003c/pre\u003e\n    \u003c/div\u003e\n  \u003c/Query\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport { Query } from 'vue-gql';\n\nexport default {\n  components: {\n    Query\n  }\n};\n\u003c/script\u003e\n```\n\nYou can do a lot more, `vue-gql` makes frequent tasks such as re-fetching, caching, mutation responses, error handling, subscriptions a breeze. Consult the documentation for more use-cases and examples.\n\n## Compatibility\n\nThis library relies on the `fetch` web API to run queries, you can use [`unfetch`](https://github.com/developit/unfetch) (client-side) or [`node-fetch`](https://www.npmjs.com/package/node-fetch) (server-side) to use as a polyfill.\n\n## Examples\n\nSOON\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaianat%2Fvue-gql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaianat%2Fvue-gql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaianat%2Fvue-gql/lists"}