{"id":25179080,"url":"https://github.com/lukehedger/graphql-go-postgres-elasticsearch","last_synced_at":"2026-04-09T01:32:08.529Z","repository":{"id":71962277,"uuid":"173095081","full_name":"lukehedger/graphql-go-postgres-elasticsearch","owner":"lukehedger","description":"Go GraphQL API + Postgres database + Elasticsearch","archived":false,"fork":false,"pushed_at":"2019-02-28T10:54:09.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-31T09:41:49.902Z","etag":null,"topics":["elasticsearch","go","graphql","postgresql"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lukehedger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-02-28T10:53:06.000Z","updated_at":"2024-06-21T19:48:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"5364fa7b-96a1-43f3-a9af-012544b7a186","html_url":"https://github.com/lukehedger/graphql-go-postgres-elasticsearch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lukehedger/graphql-go-postgres-elasticsearch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukehedger%2Fgraphql-go-postgres-elasticsearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukehedger%2Fgraphql-go-postgres-elasticsearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukehedger%2Fgraphql-go-postgres-elasticsearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukehedger%2Fgraphql-go-postgres-elasticsearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukehedger","download_url":"https://codeload.github.com/lukehedger/graphql-go-postgres-elasticsearch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukehedger%2Fgraphql-go-postgres-elasticsearch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["elasticsearch","go","graphql","postgresql"],"created_at":"2025-02-09T15:18:12.705Z","updated_at":"2026-04-09T01:32:08.521Z","avatar_url":"https://github.com/lukehedger.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQL x Go x Postgres x Elasticsearch\n\nSimple skeleton for a Go GraphQL API connected to a Postgres database and Elasticsearch cluster.\n\n## Contributing\n\n### Requirements\n- Go v1.11\n```sh\nbrew install go\n```\n\n- Postgres v11\n```sh\nbrew install postgresql\n```\n\n- ElasticSearch v6.6\n```sh\nbrew install elasticsearch\n```\n\n### Setup\nBuild Go module:\n```sh\ngo build ./...\n```\n\n### Run\nStart the Elasticsearch cluster:\n```sh\nelasticsearch\n```\n\nStart the GraphQL server:\n```sh\ngo run server/server.go\n```\n\nTry some operations:\n```graphql\nquery sayHello {\n  hello(id:\"1\")\n}\n\nquery searchFor {\n  search(query:\"luke\") {\n    id\n    name\n  }\n}\n```\n\n## Architecture\n- `db.go` - Database setup and connection\n- `model.go` - Application type definitions\n- `resolver.go` - Resolve API operations, with access to database and Elasticsearch cluster\n- `schema.graphql` - GraphQL schema in SDL\n- `server/server.go` - Serve GraphQL API\n- `util/schema.go` - Transform SDL to parseable string\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukehedger%2Fgraphql-go-postgres-elasticsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukehedger%2Fgraphql-go-postgres-elasticsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukehedger%2Fgraphql-go-postgres-elasticsearch/lists"}