{"id":15505364,"url":"https://github.com/hasparus/graphql-setup","last_synced_at":"2026-01-03T10:44:03.569Z","repository":{"id":72291904,"uuid":"477131072","full_name":"hasparus/graphql-setup","owner":"hasparus","description":"just sharing a GraphQL setup I like with a friend","archived":false,"fork":false,"pushed_at":"2022-04-02T17:55:38.000Z","size":62,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-19T05:17:02.809Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hasparus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-02T17:53:49.000Z","updated_at":"2023-11-10T00:25:17.000Z","dependencies_parsed_at":"2023-03-08T19:00:30.030Z","dependency_job_id":null,"html_url":"https://github.com/hasparus/graphql-setup","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"9c3b0d7be6af9022f925b45201459c3e4d41c795"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasparus%2Fgraphql-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasparus%2Fgraphql-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasparus%2Fgraphql-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasparus%2Fgraphql-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasparus","download_url":"https://codeload.github.com/hasparus/graphql-setup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243998712,"owners_count":20381207,"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-10-02T09:22:54.896Z","updated_at":"2026-01-03T10:44:03.527Z","avatar_url":"https://github.com/hasparus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sup mate 👋\n\n1. Press \u003ckbd\u003e.\u003c/kbd\u003e to open this repo in GitHub Codespaces.\n1. Take a look at _./graphql-codegen.yml_ and _./package.json_\n1. Then check out _\\*.gql_ files and the generated code in _\\*.generated.ts_\n\n   - I usually gitignore _\\*\\*/\\*.generated.\\*_, but I wanted\n   - I format (and usually also run linter fix) in `\"postcodegen\"` script,\n     because those files may be written by the computer, yet they'll be read by\n     a human.\n\n1. The project isn't very impressive, but if you want to play with it, you can\n   run it with:\n\n   - `pnpm install` - installs dependencies\n   - `pnpm dev` - runs Vite development server\n\n1. If you click the flower icon in the app, you'll notice React Query DevTools.\n\n   - Those DevTools and a sensible cache are one of the main reasons for this\n     setup.\n\n1. We're defining our own GraphQL client _\"fetcher\"_ function for React Query\n   hooks in _/src/gqlClient.ts_\n\n   - All generated files will import this from _~/gqlClient_. As those generated\n     files land next to their queries thanks to\n     _@graphql-codegen/near-operation-file-preset_ we needed to configure a way\n     for a convenient non-relative import.\n     - Notice `compilerOptions.paths` in _tsconfig.json_ and the usage of\n       `vite-tsconfig-paths` in _vite.config.ts_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasparus%2Fgraphql-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasparus%2Fgraphql-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasparus%2Fgraphql-setup/lists"}