{"id":13452607,"url":"https://github.com/prisma-labs/graphql-import-loader","last_synced_at":"2025-04-08T03:36:06.558Z","repository":{"id":52217024,"uuid":"123431195","full_name":"prisma-labs/graphql-import-loader","owner":"prisma-labs","description":"Webpack loader for `graphql-import`","archived":false,"fork":false,"pushed_at":"2019-10-03T19:25:59.000Z","size":12,"stargazers_count":83,"open_issues_count":11,"forks_count":13,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-28T18:56:21.859Z","etag":null,"topics":["graphql","graphql-import","webpack","webpack-loader"],"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/prisma-labs.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}},"created_at":"2018-03-01T12:20:32.000Z","updated_at":"2023-01-27T15:33:03.000Z","dependencies_parsed_at":"2022-08-20T17:31:16.538Z","dependency_job_id":null,"html_url":"https://github.com/prisma-labs/graphql-import-loader","commit_stats":null,"previous_names":["graphcool/graphql-import-loader"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma-labs%2Fgraphql-import-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma-labs%2Fgraphql-import-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma-labs%2Fgraphql-import-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma-labs%2Fgraphql-import-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prisma-labs","download_url":"https://codeload.github.com/prisma-labs/graphql-import-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223303757,"owners_count":17123097,"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":["graphql","graphql-import","webpack","webpack-loader"],"created_at":"2024-07-31T07:01:29.009Z","updated_at":"2024-11-06T08:03:55.749Z","avatar_url":"https://github.com/prisma-labs.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# graphql-import-loader\n\n[![CircleCI](https://circleci.com/gh/graphcool/graphql-import-loader.svg?style=shield)](https://circleci.com/gh/graphcool/graphql-import-loader) [![npm version](https://badge.fury.io/js/graphql-import-loader.svg)](https://badge.fury.io/js/graphql-import-loader)\n\n\nWebpack loader for [`graphql-import`](https://github.com/graphcool/graphql-import)\n\n## Install\n\n```console\nyarn add --dev graphql-import-loader\n```\n\n## Usage\n\nResolve GraphQL file import statements as a string. See the tests for more details\n\n```graphql\n# import { A } from 'src/schema/a.graphql'\n# import { B } from 'src/schema/b.graphql'\n# import { C, D } from 'src/schema/cd.graphql'\n\ntype Complex  {\n  id: ID!\n  a: A!\n  b: B!\n  c: C!\n  d: D!\n}\n```\n\n```js\nimport typeDefs from './schema.graphql'\n```\n\n```js\n// webpack.config.js\n\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        exclude: /node_modules/,\n        test: /\\.graphql$/,\n        use: [{ loader: 'graphql-import-loader' }]\n      }\n    ]\n  }\n}\n```\n\n## Examples\n\nSimple Server:\n\n```ts\nimport { GraphQLServer } from 'graphql-yoga'\nimport resolvers from './resolvers'\nimport typeDefs from './schema.graphql'\n\nconst server = new GraphQLServer({ typeDefs, resolvers })\nserver.start(() =\u003e console.log('Server running on :4000'))\n```\n\n\nAdvanced:\n\n[serverless-prisma](https://github.com/jgeschwendt/serverless-prisma): Serverless starter kit using Prisma (early-stages)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma-labs%2Fgraphql-import-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprisma-labs%2Fgraphql-import-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma-labs%2Fgraphql-import-loader/lists"}