{"library":"webpack-graphql-loader","type":"library","category":null,"description":"A webpack loader for .graphql files that provides schema validation, fragment imports, and supports both string and DocumentNode output. Version 1.0.2 is the latest stable release. The loader enables importing GraphQL queries, fragments, and schemas directly in JavaScript modules. It features an #import directive for composing GraphQL documents, optional minification, and integration with Apollo Client via DocumentNode output. Differentiators include built-in schema validation and unused fragment removal.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","typescript"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install webpack-graphql-loader","imports":["import query from './query.graphql'","import { DocumentNode } from 'graphql'","module.exports = { module: { rules: [{ test: /\\.graphql$/, use: [{ loader: 'webpack-graphql-loader', options: { validate: true, schema: './schema.json' } }] }] } }"]},{"cmd":"yarn add webpack-graphql-loader","imports":[]},{"cmd":"pnpm add webpack-graphql-loader","imports":[]}],"homepage":null,"github":"https://github.com/stephen/graphql-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/webpack-graphql-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}