{"id":18930053,"url":"https://github.com/labd/apollostudio-go-sdk","last_synced_at":"2026-03-16T18:30:19.232Z","repository":{"id":161429866,"uuid":"563789370","full_name":"labd/apollostudio-go-sdk","owner":"labd","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-01T05:00:36.000Z","size":68,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-12-31T19:29:49.852Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/labd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["labd"]}},"created_at":"2022-11-09T10:42:51.000Z","updated_at":"2024-08-02T11:38:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"61b94db7-672e-4d10-9a42-a36b3dc8c3b9","html_url":"https://github.com/labd/apollostudio-go-sdk","commit_stats":null,"previous_names":["labd/go-apollostudio-sdk"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fapollostudio-go-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fapollostudio-go-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fapollostudio-go-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fapollostudio-go-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labd","download_url":"https://codeload.github.com/labd/apollostudio-go-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239927825,"owners_count":19719835,"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-11-08T11:36:22.225Z","updated_at":"2026-03-16T18:30:19.133Z","avatar_url":"https://github.com/labd.png","language":"Go","funding_links":["https://github.com/sponsors/labd"],"categories":[],"sub_categories":[],"readme":"# Apollo Studio Go SDK\n\nGo SDK for [Apollo Studio](https://studio.apollographql.com/).\n\n## Installation\n\n```bash \ngo get github.com/labd/apollostudio-go-sdk\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"github.com/labd/apollostudio-go-sdk/apollostudio\"\n)\n\nfunc main() {\n\tkey := \"your-api-key\"\n\tref := \"your-schema-reference\"\n\n\tclient, err := apollostudio.NewClient(key, ref)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t_, _ := client.SubmitSubGraph(\n\t\tcontext.Background(),\n\t\t\u0026apollostudio.SubmitOptions{\n\t\t\tSubGraphSchema: []byte(\"schema { query: Query } type Query { hello: String }\"),\n\t\t\tSubGraphName:   \"my-subgraph\",\n\t\t\tSubGraphURL:    \"https://my-subgraph.com/graphql\",\n\t\t},\n\t)\n}\n```\n\nThe client allows for several additional options to be set, which can extend its functionality.\n\n```go\nvar clientOpts = []apollostudio.ClientOpt{\n    apollostudio.WithHttpClient(http.DefaultClient),\n    apollostudio.WithDebug(true),\n    apollostudio.WithUrl(\"https://studio.apollographql.com/api/graphql\"),                       \n}\n\nclient, err := apollostudio.NewClient(key, ref, clientOpts...)\n\n```\n\n## Contributing\n\nApollo Studio GraphQL explorer can be found [here](https://studio.apollographql.com/public/apollo-platform/variant/main/explorer).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabd%2Fapollostudio-go-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabd%2Fapollostudio-go-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabd%2Fapollostudio-go-sdk/lists"}