{"id":21500506,"url":"https://github.com/node-libraries/pothos-schema-exporter","last_synced_at":"2025-06-12T12:38:29.369Z","repository":{"id":191702398,"uuid":"685426337","full_name":"node-libraries/pothos-schema-exporter","owner":"node-libraries","description":"Plugin to output 'schema.graphql' from pothos to file","archived":false,"fork":false,"pushed_at":"2023-09-27T00:14:51.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-21T08:23:49.469Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/node-libraries.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}},"created_at":"2023-08-31T07:48:57.000Z","updated_at":"2023-08-31T08:03:55.000Z","dependencies_parsed_at":"2023-08-31T08:42:13.382Z","dependency_job_id":"71638579-8c81-41a7-a2f5-83e409ec07ef","html_url":"https://github.com/node-libraries/pothos-schema-exporter","commit_stats":null,"previous_names":["node-libraries/pothos-schema-exporter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/node-libraries/pothos-schema-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fpothos-schema-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fpothos-schema-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fpothos-schema-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fpothos-schema-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-libraries","download_url":"https://codeload.github.com/node-libraries/pothos-schema-exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fpothos-schema-exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259466554,"owners_count":22862332,"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-11-23T17:41:57.944Z","updated_at":"2025-06-12T12:38:29.348Z","avatar_url":"https://github.com/node-libraries.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pothos-schema-exporter\n\nPlugin to output 'schema.graphql' from pothos to file\n\n## usage\n\nSet the output path to `output`\n\n```ts\nimport PothosSchemaExporter from \"pothos-schema-exporter\";\n\nexport const builder = new SchemaBuilder({\n  plugins: [PothosSchemaExporter],\n  pothosSchemaExporter: {\n    output: \"schema.graphql\",\n  },\n});\n```\n\nIf `undefined`,`null`,`false` is set, no file will be output\n\n```ts\nimport PothosSchemaExporter from \"pothos-schema-exporter\";\n\nexport const builder = new SchemaBuilder({\n  plugins: [PothosSchemaExporter],\n  pothosSchemaExporter: {\n    output:\n      process.env.NODE_ENV === \"development\" \u0026\u0026\n      path.join(process.cwd(), \"graphql\", \"schema.graphql\"),\n  },\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-libraries%2Fpothos-schema-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-libraries%2Fpothos-schema-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-libraries%2Fpothos-schema-exporter/lists"}