{"id":13727332,"url":"https://github.com/renanmav/hasura-relay-example","last_synced_at":"2025-03-02T19:30:21.821Z","repository":{"id":154080924,"uuid":"244743939","full_name":"renanmav/hasura-relay-example","owner":"renanmav","description":"Use Relay Modern for data-fetching with Hasura","archived":false,"fork":false,"pushed_at":"2020-03-08T23:13:16.000Z","size":222,"stargazers_count":25,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-17T22:12:08.474Z","etag":null,"topics":["example","graphql","hasura","relay"],"latest_commit_sha":null,"homepage":"https://hasura-relay-example.now.sh/","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/renanmav.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}},"created_at":"2020-03-03T21:19:32.000Z","updated_at":"2023-07-29T22:39:46.000Z","dependencies_parsed_at":"2023-07-25T04:16:25.989Z","dependency_job_id":null,"html_url":"https://github.com/renanmav/hasura-relay-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanmav%2Fhasura-relay-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanmav%2Fhasura-relay-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanmav%2Fhasura-relay-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanmav%2Fhasura-relay-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renanmav","download_url":"https://codeload.github.com/renanmav/hasura-relay-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241560221,"owners_count":19982384,"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":["example","graphql","hasura","relay"],"created_at":"2024-08-03T01:03:50.210Z","updated_at":"2025-03-02T19:30:21.457Z","avatar_url":"https://github.com/renanmav.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# hasura-relay-example\n\n- This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n- It uses [`react-relay`](https://github.com/facebook/relay/tree/master/packages/react-relay) for data-fetching with the experimental flag (hooks ftw).\n- The Hasura app was deployed following this [starter guide](https://hasura.io/docs/1.0/graphql/manual/getting-started/index.html).\n\nThe base of this project is that Relay asks for a server that provides a [mechanism for refetching an object](https://github.com/graphql/graphql-relay-js), i.e., a global id. Hasura can’t garantee that you’ll have unique global ids, so you need to implement the [`getDataID`](https://github.com/renanmav/hasura-relay-example/blob/master/src/environment.ts#L40-L42) when creating your Relay environment. In this case, I made the global id an string with `\u003ctypename\u003e:\u003cid\u003e` encoded as base64 (the standard of [`graphql-relay`](https://github.com/graphql/graphql-relay-js)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenanmav%2Fhasura-relay-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenanmav%2Fhasura-relay-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenanmav%2Fhasura-relay-example/lists"}