{"library":"babel-plugin-import-graphql","type":"library","category":null,"description":"A Babel plugin (v2.8.1) that enables importing .graphql and .gql files directly in JavaScript/TypeScript code, converting them into GraphQL AST objects via graphql-tag. Supports schema files with #import syntax, operation/fragment files with all import variants, and emits .d.ts declarations. Requires graphql >=0.9.6 and graphql-tag >=2.1.0 as peer dependencies. Commonly used in Apollo projects to avoid string literals and manual parsing. Active but with infrequent updates (last release January 2021).","language":"javascript","status":"active","version":"2.8.1","tags":["javascript","babel-plugin","apollo","graphql","gql","extension","import","inline"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-import-graphql","imports":["import myQuery from './query.graphql'","import { myQuery } from './queries.graphql'","import * as queries from './queries.graphql'"]},{"cmd":"yarn add babel-plugin-import-graphql","imports":[]},{"cmd":"pnpm add babel-plugin-import-graphql","imports":[]}],"homepage":null,"github":"https://github.com/detrohutt/babel-plugin-import-graphql","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-import-graphql","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-import-graphql/compatibility"}}