{"id":16201729,"url":"https://github.com/txbm/graphql-http","last_synced_at":"2026-03-05T21:06:52.063Z","repository":{"id":76967778,"uuid":"58235135","full_name":"txbm/graphql-http","owner":"txbm","description":"A GraphQL client for executing queries over HTTP.","archived":false,"fork":false,"pushed_at":"2017-04-04T19:37:20.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T11:02:57.050Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/txbm.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":"2016-05-06T21:11:31.000Z","updated_at":"2017-10-27T18:38:00.000Z","dependencies_parsed_at":"2023-05-05T15:53:21.448Z","dependency_job_id":null,"html_url":"https://github.com/txbm/graphql-http","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/txbm/graphql-http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txbm%2Fgraphql-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txbm%2Fgraphql-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txbm%2Fgraphql-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txbm%2Fgraphql-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/txbm","download_url":"https://codeload.github.com/txbm/graphql-http/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txbm%2Fgraphql-http/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259804834,"owners_count":22913900,"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-10T09:39:43.500Z","updated_at":"2026-03-05T21:06:51.781Z","avatar_url":"https://github.com/txbm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphql-http\n\nA GraphQL client for executing queries over HTTP.\n\n### DISCLAIMER\n\nThis library is not suitable for production use. If you're looking for a client\nwith similar functionality, see [Lokka](https://github.com/kadirahq/lokka). It\nhas much more support and is much more robust.\n\n### Usage\n\n```js\nimport { GQLClient } from 'graphql-http';\n\nconst client = GQLClient('http://localhost:3000', {\n  fetch: {\n    // anything passed here is merged with\n    // the options passed to fetch()\n    credentials: true,\n    headers: {\n      'X-Requested-With': 'XMLHttpRequest'\n    }\n  }\n});\n```\n\nQueries\n\n```js\nclient.query(`\n  query ($id: RecordID!) {\n    user(id: $id) {\n      id\n      name\n    }\n  }\n`, { id: 1234 }).then((result) =\u003e {\n  console.log(result.data.user);\n  // =\u003e { id: 1234, name: ... }\n});\n```\n\nMutations\n\n```js\nclient.mutate(`\n  mutation ($id: RecordID!, $name: String!) {\n    updateUser(input: {id: $id, name: $name}) {\n      user {\n        id\n        name\n      }\n    }\n  }\n`, { id: 1234, name: 'Danny' }).then((result) =\u003e {\n  console.log(result.data.user);\n  // =\u003e { id: 1234, name: 'Danny' }\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxbm%2Fgraphql-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftxbm%2Fgraphql-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxbm%2Fgraphql-http/lists"}