{"id":13532994,"url":"https://github.com/tqwewe/solid-urql","last_synced_at":"2025-03-21T23:34:16.822Z","repository":{"id":39905650,"uuid":"382822773","full_name":"tqwewe/solid-urql","owner":"tqwewe","description":"Urql support for Solid JS projects.","archived":false,"fork":false,"pushed_at":"2022-05-31T12:57:22.000Z","size":33,"stargazers_count":35,"open_issues_count":9,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T18:05:54.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/solid-urql","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/tqwewe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"tqwewe","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2021-07-04T10:26:10.000Z","updated_at":"2024-05-08T08:30:30.000Z","dependencies_parsed_at":"2022-08-09T21:40:16.264Z","dependency_job_id":null,"html_url":"https://github.com/tqwewe/solid-urql","commit_stats":null,"previous_names":["acidic9/solid-urql"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tqwewe%2Fsolid-urql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tqwewe%2Fsolid-urql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tqwewe%2Fsolid-urql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tqwewe%2Fsolid-urql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tqwewe","download_url":"https://codeload.github.com/tqwewe/solid-urql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244885401,"owners_count":20526291,"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":[],"created_at":"2024-08-01T07:01:15.648Z","updated_at":"2025-03-21T23:34:16.552Z","avatar_url":"https://github.com/tqwewe.png","language":"TypeScript","funding_links":["https://github.com/sponsors/tqwewe","https://www.buymeacoffee.com/ariseyhun"],"categories":["📦 Components \u0026 Libraries"],"sub_categories":["Querying/GraphQL"],"readme":"\u003ch1 align=\"center\"\u003eSolid URQL\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n  URQL support for Solid JS projects.\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n## Installation\n\n```bash\nyarn add solid-urql @urql/core graphql\n# or\nnpm i solid-urql @urql/core graphql\n```\n\n## Usage\n\n```tsx\nimport { createClient, Provider } from 'solid-urql'\n\nconst client = createClient({\n  url: 'http://localhost:8000/graphql',\n})\n\nconst App = (props) =\u003e {\n  return (\n    \u003cProvider value={client}\u003e\n      \u003cTodoList /\u003e\n    \u003c/Provider\u003e\n  )\n}\n```\n\n```tsx\nimport { Show } from 'solid-js'\nimport { createQuery } from 'solid-urql'\n\nconst TodosQuery = `\n  query {\n    todos {\n      id\n      title\n    }\n  }\n`\n\nconst TodoList = (props) =\u003e {\n  const [items, itemsState, reexecuteQuery] = createQuery({\n    query: TodosQuery,\n  })\n\n  return (\n    \u003cShow when={!itemsState().fetching} fallback={\u003cp\u003eLoading...\u003c/p\u003e}\u003e\n      \u003cp\u003e\n        Items are:{' '}\n        {items()\n          .map((item) =\u003e item.title)\n          .join(', ')}\n      \u003c/p\u003e\n    \u003c/Show\u003e\n  )\n}\n```\n\nRead more at the [URQL Official Documentation](https://formidable.com/open-source/urql/).\n\n## Contributing 🙌\n\nContributions are more than welcome. If you see any changes fit, go ahead and open an issue or PR.\n\n---\n\nAny support is a huge motivation, thank you very much!\n\n\u003ca href=\"https://www.buymeacoffee.com/ariseyhun\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"32\" width=\"140\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftqwewe%2Fsolid-urql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftqwewe%2Fsolid-urql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftqwewe%2Fsolid-urql/lists"}