{"id":45911100,"url":"https://github.com/conorheffron/go-graph","last_synced_at":"2026-04-04T20:01:42.149Z","repository":{"id":323645843,"uuid":"1083208097","full_name":"conorheffron/go-graph","owner":"conorheffron","description":"This is a small application used track to do items using Go \u0026 the GraphQL Playground","archived":false,"fork":false,"pushed_at":"2026-04-04T18:02:28.000Z","size":45,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T19:57:05.159Z","etag":null,"topics":["99designs","go","golang","gqlgen","graphiql-interface","graphql"],"latest_commit_sha":null,"homepage":"https://conorheffron.github.io/go-graph/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/conorheffron.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-25T15:01:14.000Z","updated_at":"2026-04-04T18:00:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"c32eca6d-9294-4b5c-9242-69b58225ca05","html_url":"https://github.com/conorheffron/go-graph","commit_stats":null,"previous_names":["conorheffron/go-graph"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/conorheffron/go-graph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conorheffron%2Fgo-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conorheffron%2Fgo-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conorheffron%2Fgo-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conorheffron%2Fgo-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/conorheffron","download_url":"https://codeload.github.com/conorheffron/go-graph/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conorheffron%2Fgo-graph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31411645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T19:29:44.979Z","status":"ssl_error","status_checked_at":"2026-04-04T19:29:11.535Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["99designs","go","golang","gqlgen","graphiql-interface","graphql"],"created_at":"2026-02-28T06:53:58.010Z","updated_at":"2026-04-04T20:01:42.144Z","avatar_url":"https://github.com/conorheffron.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-graph\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n\n[![Go](https://github.com/conorheffron/go-graph/actions/workflows/go.yml/badge.svg)](https://github.com/conorheffron/go-graph/actions/workflows/go.yml)\n\n## Overview\n - Track to do items with Go \u0026 GraphQL.\n\n### Quick start build steps\n ```shell\ngo install github.com/99designs/gqlgen@latest\n\ngo mod init go-graph\n\ngo get github.com/99designs/gqlgen@v0.17.89\n\ngo run github.com/99designs/gqlgen init\n\ngo mod tidy\n\ngo build .\n\n./go-graph\n```\n### Should see the following in console:\n```shell\n2025/10/25 17:37:16 connect to http://localhost:8080/ for GraphQL playground\n```\n\n### Start Server (without Build Steps)\n```shell\ngo run ./server.go  \n```\n\n### Go to GraphiQL UI\n - http://localhost:8080/\n\n### Sample Mutations \u0026 Query (GraphQL format)\n```graphql\nquery myToDos {\n  todos {\n    id\n    text\n    done\n  }\n}\n\nmutation addToDo {\n  createTodo(text: \"Learn GraphQL\") {\n    id\n    text\n    done\n  }\n}\n\nmutation addToDo2 {\n  createTodo(text: \"Shopping\") {\n    id\n    text\n    done\n  }\n}\n\nmutation addToDo3 {\n  createTodo(text: \"Exercise\") {\n    id\n    text\n    done\n  }\n}\n```\n\n### Sample Mutations \u0026 Query (curl format)\n\n#### Muation (Add 'Learn GraphQL' to do)\n```shell\ncurl -X POST -H \"Content-Type: application/json\" \\\n-d '{\"query\": \"mutation { createTodo(text: \\\"Learn GraphQL\\\") { id text done } }\"}' \\\nhttp://localhost:8080/query\n```\n#### Response\n```json\n{\"data\":{\"createTodo\":{\"id\":\"8053753236064475949\",\"text\":\"Learn GraphQL\",\"done\":false}}}\n```        \n\n#### Muation (Add 'Shopping' to do)                                               \n```shell\ncurl -X POST -H \"Content-Type: application/json\" \\\n-d '{\"query\": \"mutation { createTodo(text: \\\"Shopping\\\") { id text done } }\"}' \\\nhttp://localhost:8080/query\n```\n#### Response\n```json\n{\"data\":{\"createTodo\":{\"id\":\"3260314713893700176\",\"text\":\"Shopping\",\"done\":false}}}\n```\n\n#### Query (Get TODOs list)  \n```shell\ncurl -X POST -H \"Content-Type: application/json\" \\\n-d '{\"query\": \"query { todos { id text done } }\"}' \\                            \nhttp://localhost:8080/query\n```\n#### Response\n```json\n{\"data\":{\"todos\":[{\"id\":\"8053753236064475949\",\"text\":\"Learn GraphQL\",\"done\":false},{\"id\":\"3260314713893700176\",\"text\":\"Shopping\",\"done\":false}]}}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconorheffron%2Fgo-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconorheffron%2Fgo-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconorheffron%2Fgo-graph/lists"}