{"id":39008333,"url":"https://github.com/infinityworks/graphql","last_synced_at":"2026-01-17T17:19:21.414Z","repository":{"id":83336897,"uuid":"227648605","full_name":"infinityworks/graphql","owner":"infinityworks","description":"Graphql Client for Golang","archived":false,"fork":false,"pushed_at":"2019-12-12T16:48:12.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-15T12:44:52.808Z","etag":null,"topics":["golang","graphql","graphql-client"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infinityworks.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":"2019-12-12T16:23:10.000Z","updated_at":"2019-12-12T16:57:04.000Z","dependencies_parsed_at":"2023-06-19T12:38:21.501Z","dependency_job_id":null,"html_url":"https://github.com/infinityworks/graphql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/infinityworks/graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityworks%2Fgraphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityworks%2Fgraphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityworks%2Fgraphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityworks%2Fgraphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infinityworks","download_url":"https://codeload.github.com/infinityworks/graphql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityworks%2Fgraphql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28512433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang","graphql","graphql-client"],"created_at":"2026-01-17T17:19:21.280Z","updated_at":"2026-01-17T17:19:21.390Z","avatar_url":"https://github.com/infinityworks.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphql [![GoDoc](https://godoc.org/github.com/infinityworks/graphql?status.png)](http://godoc.org/github.com/infinityworks/graphql) [![Build Status](https://travis-ci.org/infinityworks/graphql.svg?branch=master)](https://travis-ci.org/infinityworks/graphql) [![Go Report Card](https://goreportcard.com/badge/github.com/infinityworks/graphql)](https://goreportcard.com/report/github.com/infinityworks/graphql)\n\nLow-level GraphQL client for Go.\n\n* Simple, familiar API\n* Respects `context.Context` timeouts and cancellation\n* Build and execute any kind of GraphQL request\n* Use strong Go types for response data\n* Use variables and upload files\n* Simple error handling\n\n## Installation\nMake sure you have a working Go environment. To install graphql, simply run:\n\n```\n$ go get github.com/infinityworks/graphql\n```\n\n## Usage\n\n```go\nimport \"context\"\n\n// create a client (safe to share across requests)\nclient := graphql.NewClient(\"https://infinityworks.io/graphql\")\n\n// make a request\nreq := graphql.NewRequest(`\n    query ($key: String!) {\n        items (id:$key) {\n            field1\n            field2\n            field3\n        }\n    }\n`)\n\n// set any variables\nreq.Var(\"key\", \"value\")\n\n// set header fields\nreq.Header.Set(\"Cache-Control\", \"no-cache\")\n\n// define a Context for the request\nctx := context.Background()\n\n// run it and capture the response\nvar respData ResponseStruct\nif err := client.Run(ctx, req, \u0026respData); err != nil {\n    log.Fatal(err)\n}\n```\n\n### File support via multipart form data\n\nBy default, the package will send a JSON body. To enable the sending of files, you can opt to\nuse multipart form data instead using the `UseMultipartForm` option when you create your `Client`:\n\n```\nclient := graphql.NewClient(\"https://infinityworks.io/graphql\", graphql.UseMultipartForm())\n```\n\nFor more information, [read the godoc package documentation](http://godoc.org/github.com/infinityworks/graphql) or the [blog post](https://blog.machinebox.io/a-graphql-client-library-for-go-5bffd0455878).\n\n## Thanks\n\nThanks to [Machinebox](https://github.com/machinebox/graphql) for their original\nwork on this library pre-fork.\n\nThanks to [Chris Broadfoot](https://github.com/broady) for design help.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinityworks%2Fgraphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfinityworks%2Fgraphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinityworks%2Fgraphql/lists"}