{"id":13474814,"url":"https://github.com/prisma-korea/graphql-schema-generator","last_synced_at":"2025-03-26T22:31:18.258Z","repository":{"id":45041087,"uuid":"438201014","full_name":"prisma-korea/graphql-schema-generator","owner":"prisma-korea","description":"Generate GraphQL Schema from Prisma schema.","archived":true,"fork":false,"pushed_at":"2022-01-14T04:54:54.000Z","size":265,"stargazers_count":32,"open_issues_count":10,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T02:51:32.364Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/prisma-korea.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-14T09:57:47.000Z","updated_at":"2023-02-15T15:11:26.000Z","dependencies_parsed_at":"2022-09-26T19:00:25.819Z","dependency_job_id":null,"html_url":"https://github.com/prisma-korea/graphql-schema-generator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma-korea%2Fgraphql-schema-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma-korea%2Fgraphql-schema-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma-korea%2Fgraphql-schema-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma-korea%2Fgraphql-schema-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prisma-korea","download_url":"https://codeload.github.com/prisma-korea/graphql-schema-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245747682,"owners_count":20665839,"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-07-31T16:01:15.008Z","updated_at":"2025-03-26T22:31:16.820Z","avatar_url":"https://github.com/prisma-korea.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","others"],"sub_categories":[],"readme":"# GraphQL-Schema-Generator for Prisma\n\n\n[![CI](https://github.com/prisma-korea/graphql-schema-generator/actions/workflows/ci.yml/badge.svg)](https://github.com/prisma-korea/graphql-schema-generator/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/prisma-korea/graphql-schema-generator/branch/master/graph/badge.svg?token=H4VN0S3ES9)](https://codecov.io/gh/prisma-korea/graphql-schema-generator)\n\n\nGenerate **GraphQL schema (SDL)** from **Prisma schema** using a custom Prisma generator.\n\n## Getting Started\n\n1. Install this package in your project using:\n\n```sh\n// pnpm, npm, or yarn\npnpm install @prisma-korea/graphql-schema-generator\n```\n\n2. Add the generator to the `schema.prisma`:\n\n```prisma\ngenerator graphql {\n  provider = \"graphql-schema-generator\"\n  createCRUD = \"true\"\n  # output = \"./generated\" This is default path.\n}\n```\n\n3. Run `npx prisma generate` to run the generator\n\n4. Check `schema.graphql` in `./prisma/generated` 🎉\n\n## Custom Rules\nYou can apply custom rules to manipulate behavior. [(Some use cases)](https://github.com/prisma-korea/graphql-schema-generator/issues/34). See [this](https://github.com/prisma-korea/graphql-schema-generator/tree/master/prisma) for example.\n\n\u003e Example dir structure\n\n  ![image](https://user-images.githubusercontent.com/27461460/149453371-3991e868-ba43-4cf4-9d2a-c03e66c6eb75.png)\n\n\u003e Example usage\n\n  ```\n  generator graphql {\n    provider = \"graphql-schema-generator\"\n    output   = \"../src/schemas\"\n    createCRUD = \"true\"\n    customRules = \"../prisma/rules.ts\"\n  }\n  ```\n\n\u003e Example [rules code](https://github.com/prisma-korea/graphql-schema-generator/issues/15#issuecomment-1012775364)\n\n## Contributing\n\nAny contributions are welcome. If you are interested, check out our [guidelines](https://github.com/prisma-korea/graphql-schema-generator/blob/master/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma-korea%2Fgraphql-schema-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprisma-korea%2Fgraphql-schema-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma-korea%2Fgraphql-schema-generator/lists"}