{"id":15192453,"url":"https://github.com/jale29/hasura-gql-client","last_synced_at":"2025-08-27T00:32:33.665Z","repository":{"id":62951549,"uuid":"563706357","full_name":"JaLe29/hasura-gql-client","owner":"JaLe29","description":"Typescript based Hasura GQL client for NodeJS/TS/JS apps 🚀","archived":true,"fork":false,"pushed_at":"2024-05-03T21:24:07.000Z","size":234,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T07:41:49.068Z","etag":null,"topics":["graphql","graphql-api","graphql-client","graphql-js","graphql-schema","hasura","hasura-graphql","hasura-graphql-engine","hasura-remote-schema"],"latest_commit_sha":null,"homepage":"","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/JaLe29.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-09T06:47:40.000Z","updated_at":"2025-01-30T21:32:02.000Z","dependencies_parsed_at":"2024-10-25T00:47:41.114Z","dependency_job_id":null,"html_url":"https://github.com/JaLe29/hasura-gql-client","commit_stats":{"total_commits":47,"total_committers":2,"mean_commits":23.5,"dds":0.4893617021276596,"last_synced_commit":"dce77e4ea761ecdc37d37a427a86c6ff2e0bfe63"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JaLe29/hasura-gql-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaLe29%2Fhasura-gql-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaLe29%2Fhasura-gql-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaLe29%2Fhasura-gql-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaLe29%2Fhasura-gql-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JaLe29","download_url":"https://codeload.github.com/JaLe29/hasura-gql-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaLe29%2Fhasura-gql-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272272422,"owners_count":24904552,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["graphql","graphql-api","graphql-client","graphql-js","graphql-schema","hasura","hasura-graphql","hasura-graphql-engine","hasura-remote-schema"],"created_at":"2024-09-27T21:40:16.414Z","updated_at":"2025-08-27T00:32:33.333Z","avatar_url":"https://github.com/JaLe29.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💀💀💀💀💀 this project is not maintained anymore 💀💀💀💀💀\n\n# hasura-gql-client\nTypescript based Hasura GQL client for NodeJS/TS/JS apps.\n\n[![npm version](https://badge.fury.io/js/hasura-gql-client.svg)](https://badge.fury.io/js/hasura-gql-client)  \n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/JaLe29/hasura-gql-client\" target=\"blank\"\u003e\u003cimg src=\"data/img.png\" alt=\"hasura-gql-client image\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n- 🚀 Blazing fast GraphQL\n- ⚡️ Lightning Fast\n- 🔑 Fully Typed APIs\n- 🛠️ Rich Features\n- 📦 Optimized Build\n- 🥴 No Graphql string mess\n\n## Installation\n```ts\nyarn add hasura-gql-client\n```\nor\n```ts\nnpm i hasura-gql-client\n```\n\n## Settings\n```ts\nimport Client from 'hasura-gql-client';\n\ninterface TestBook {\n\tid: string;\n\tname: string;\n}\n\ninterface TestUser {\n\tid: string;\n\temail: string;\n\tbooks: TestBook[];\n\tbook: TestBook;\n}\n\ninterface Select {\n\ttest_user: TestUser;\n\ttest_book: TestBook;\n}\n\n// Insert type\ninterface InsertTestUser {\n\temail: string;\n}\n\ninterface InsertTestBook {\n\tname: string;\n}\n\ninterface Insert {\n\ttest_user: InsertTestUser;\n\ttest_book: InsertTestBook;\n}\n\n// Update type\ninterface UpdateTestUser {\n\temail?: string;\n}\n\ninterface UpdateTestBook {\n\tname: string;\n}\n\ninterface Update {\n\ttest_user: UpdateTestUser;\n\ttest_book: UpdateTestBook;\n}\n\nconst client = new Client\u003cSelect, Insert, Update\u003e({\n\thost: process.env.HOST ?? 'err',\n\tcustomHeaders: { 'x-hasura-admin-secret': process.env.X_HASURA_ADMIN_SECRET ?? 'err' },\n\tdebug: true,\n});\n\nconst start = async (): Promise\u003cvoid\u003e =\u003e {\n\t// select\n\tconst usersSelect2 = await client.select('test_user', ['id', 'book.name', 'books.id']);\n\tconsole.log(usersSelect2[0]?.id);\n\tconsole.log(usersSelect2[0]?.books[0].id);\n\tconsole.log(usersSelect2[0]?.book.name);\n\n\t// insert\n\tconst usersInsert = await client.insert('test_user', { email: 'foo@email.com', name: 'foo' }, ['id']);\n\tconsole.log(usersInsert[0].id);\n\n\t// update\n\tconst usersUpdate = await client.update('test_user', { email: 'foo2@email.com' }, ['id']);\n\tconsole.log(usersUpdate[0].id);\n};\n\nstart().catch(console.error);\n\n```\nSee [example folder](https://github.com/JaLe29/hasura-gql-client/tree/master/example) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjale29%2Fhasura-gql-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjale29%2Fhasura-gql-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjale29%2Fhasura-gql-client/lists"}