{"id":16366651,"url":"https://github.com/steebchen/graphql-prisma","last_synced_at":"2026-05-19T06:04:34.051Z","repository":{"id":57659442,"uuid":"170206718","full_name":"steebchen/graphql-prisma","owner":"steebchen","description":"Example GraphQL Go server with Prisma","archived":false,"fork":false,"pushed_at":"2019-03-05T13:58:28.000Z","size":54,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-30T23:14:12.888Z","etag":null,"topics":["go","golang","graphql","prisma"],"latest_commit_sha":null,"homepage":"","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/steebchen.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}},"created_at":"2019-02-11T21:40:39.000Z","updated_at":"2019-09-26T16:03:06.000Z","dependencies_parsed_at":"2022-09-08T00:11:13.723Z","dependency_job_id":null,"html_url":"https://github.com/steebchen/graphql-prisma","commit_stats":null,"previous_names":["steebchen/graphql"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/steebchen/graphql-prisma","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Fgraphql-prisma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Fgraphql-prisma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Fgraphql-prisma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Fgraphql-prisma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steebchen","download_url":"https://codeload.github.com/steebchen/graphql-prisma/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Fgraphql-prisma/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265506192,"owners_count":23778679,"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":["go","golang","graphql","prisma"],"created_at":"2024-10-11T02:47:09.693Z","updated_at":"2026-05-19T06:04:34.016Z","avatar_url":"https://github.com/steebchen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQL Server Example\n\nThis example shows how to implement a **GraphQL server with Golang** based on Prisma \u0026 [gqlgen](https://github.com/99designs/gqlgen).\n\n**For an advanced fork with go modules, DI, and more, see https://github.com/robojones/graphql**\n\n## How to use\n\n### 1. Download example \u0026 install dependencies\n\nClone the repository:\n\n```\ngit clone git@github.com:steebchen/graphql.git\n```\n\nEnsure dependencies are available and up-to-date:\n\n```\ncd graphql\ndep ensure -update\n```\n\n### 2. Install the Prisma CLI\n\nTo run the example, you need the Prisma CLI. Please install it via Homebrew or [using another method](https://www.prisma.io/docs/prisma-cli-and-configuration/using-the-prisma-cli-alx4/#installation):\n\n```\nbrew install prisma\nbrew tap\n# or\nnpm i -g prisma\n```\n\n### 3. Set up database \u0026 deploy Prisma datamodel\n\nStart the server and the database using docker-compose:\n\n```bash\ndocker-compose up -d\n```\n\nDeploy our schema to our database:\n\n```\nprisma deploy # this also runs prisma generate and gqlgen\n```\n\n### 4. Start the GraphQL server\n\n```\ngo run .\n```\n\nNavigate to [http://localhost:4000](http://localhost:4000) in your browser to explore the API of your GraphQL server in a [GraphQL Playground](https://github.com/prisma/graphql-playground).\n\n### 5. Using the GraphQL API\n\nThe schema that specifies the API operations of your GraphQL server is defined in [`./api/schema.graphqls`](./api/schema.graphqls). Below are a number of operations that you can send to the API using the GraphQL Playground.\n\nFeel free to adjust any operation by adding or removing fields. The GraphQL Playground helps you with its auto-completion and query validation features.\n\n#### Log in\n\n```graphql\nmutation {\n  login(email: \"alice@prisma.io\", password: \"test\") {\n    id\n    email\n    name\n  }\n}\n```\n\n#### Get user\n\n```graphql\nquery {\n  user {\n    id\n    name\n    email\n  }\n}\n```\n\nMore coming soon.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteebchen%2Fgraphql-prisma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteebchen%2Fgraphql-prisma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteebchen%2Fgraphql-prisma/lists"}