{"id":16017601,"url":"https://github.com/zackradisic/prisma2gql","last_synced_at":"2026-01-11T03:59:16.635Z","repository":{"id":114944918,"uuid":"490821413","full_name":"zackradisic/prisma2gql","owner":"zackradisic","description":"prisma schema 2 graphql schema generator","archived":false,"fork":false,"pushed_at":"2022-05-30T13:51:32.000Z","size":14,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T04:24:27.172Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/zackradisic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2022-05-10T18:45:38.000Z","updated_at":"2023-12-05T01:12:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"2556415b-0d40-42f3-ae0b-0aed33e03c66","html_url":"https://github.com/zackradisic/prisma2gql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackradisic%2Fprisma2gql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackradisic%2Fprisma2gql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackradisic%2Fprisma2gql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackradisic%2Fprisma2gql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zackradisic","download_url":"https://codeload.github.com/zackradisic/prisma2gql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243885883,"owners_count":20363643,"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-10-08T16:20:46.023Z","updated_at":"2026-01-11T03:59:16.595Z","avatar_url":"https://github.com/zackradisic.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prisma2gql\n\nsimple lil graphql code generator 4 prisma schema files\n\n## setup\n\n1. install nix\n2. run `nix-shell` in the root project directory\n3. run `cabal update`\n3. run `cabal install` this should install `prisma2gql` to `~/.cabal/bin/prisma2gql` so add it to your path\n\n## usage\n\n```\nUsage: prisma2gql [--schema ARG] [--template ARG] [--out ARG]\n\n  Generate a GraphQL schema from a Prisma schema\n\nAvailable options:\n  --schema ARG             Path to Prisma schema file\n  --template ARG           Path to template\n  --out ARG                Path for output generate gql schema\n  -h,--help                Show this help text\n```\n\n## example\n\nYou can comment a field with `@gql-optional` to make the field optional in the GraphQL schema, but remain required in the\nprisma schema.\n\nYou can comment a field with `@gql-ignore` to omit the field from the graphql schema.\n\n```prisma\nmodel Person {\n    id           Int     @id @default(autoincrement())\n    // @gql-optional\n    email        String\n    // @gql-ignore\n    secondsLived BigInt\n}\n```\n\nthis will output:\n\n```graphql\ntype Person {\n  id: Int!\n  email: String\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackradisic%2Fprisma2gql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzackradisic%2Fprisma2gql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackradisic%2Fprisma2gql/lists"}