{"id":15856885,"url":"https://github.com/damassi/gatsby-plugin-emit-graphql-types","last_synced_at":"2025-07-16T05:08:19.413Z","repository":{"id":150231655,"uuid":"168889175","full_name":"damassi/gatsby-plugin-emit-graphql-types","owner":"damassi","description":"A Gatsby plugin that automatically emits GraphQL TypeScript types","archived":false,"fork":false,"pushed_at":"2019-05-21T18:23:41.000Z","size":1758,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T09:06:50.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/damassi.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-02T23:21:23.000Z","updated_at":"2019-05-27T07:14:46.000Z","dependencies_parsed_at":"2023-06-15T05:30:20.885Z","dependency_job_id":null,"html_url":"https://github.com/damassi/gatsby-plugin-emit-graphql-types","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"1e45a37cd14933d5da1adbf74c0f424f3fa4e80c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/damassi/gatsby-plugin-emit-graphql-types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damassi%2Fgatsby-plugin-emit-graphql-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damassi%2Fgatsby-plugin-emit-graphql-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damassi%2Fgatsby-plugin-emit-graphql-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damassi%2Fgatsby-plugin-emit-graphql-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damassi","download_url":"https://codeload.github.com/damassi/gatsby-plugin-emit-graphql-types/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damassi%2Fgatsby-plugin-emit-graphql-types/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265483469,"owners_count":23774215,"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-05T20:04:32.720Z","updated_at":"2025-07-16T05:08:19.387Z","avatar_url":"https://github.com/damassi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gatsby-plugin-emit-graphql-types\n\nA Gatsby plugin that automatically emits GraphQL TypeScript types via [relay-language-compiler-typescript](https://github.com/relay-tools/relay-compiler-language-typescript).\n\n## Wait! Large bold caveat!\n\nAs it currently stands, this plugin *will not work* in projects that use plugins that export fragments, and will fail to emit types. This includes\n- `gatsby-transformer-sharp`\n- `gatsby-source-contentful`\n- `gatsby-source-datocms`\n- `gatsby-source-sanity`\n\nand other plugins that take advantage of [`gatsby-image`](https://www.gatsbyjs.org/packages/gatsby-image/#fragments).\n\nThis is a limitation in Gatsby's current architecture. See [this issue](https://github.com/graphql/graphiql/issues/612) or more information. Please use at your own risk.\n\n## Setup\n\nThis plugin is intentionally unpublished due to the issue above. If you would like to give this a spin see the [local plugins](https://www.gatsbyjs.org/docs/loading-plugins-from-your-local-plugins-folder/) section of the gatsby docs and then in `gatsby-config.js`, add the plugin:\n\n```js\nplugins: [\n  \"gatsby-plugin-emit-graphql-types\"\n]\n```\n\nIf also accepts these configuration options:\n\n```js\nplugins: [\n  {\n    resolve: \"gatsby-plugin-emit-graphql-types\",\n    options: {\n      /**\n       * The root location of source files\n       */\n      src: './src',\n      /**\n       * The location to save the schema to. This is used by the compiler to emit types\n       */\n      schema: './schema.graphql',\n      /**\n       * The relay compiler supports different languages, such as flow. Right now\n       * this plugin only supports TypeScript, but willing to accept PRs.\n       */\n      language: 'typescript',\n      /**\n       * Location where generated types are saved to\n       */\n      artifactDirectory: './src/__generated__',\n      /**\n       * If true, the compiler will watch `src` for changes and recompile\n       */\n      watch: false\n    }\n  }\n]\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamassi%2Fgatsby-plugin-emit-graphql-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamassi%2Fgatsby-plugin-emit-graphql-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamassi%2Fgatsby-plugin-emit-graphql-types/lists"}