Add GraphQL support to ts-loader
Closed this issue · 1 comments
kenotron commented
- https://www.npmjs.com/package/ts-transform-graphql-tag - Add this transformer to allow TS files to have access to the gql tag.
- Also, add a typing definition of the following form:
declare module '*.graphql' {
import { DocumentNode } from 'graphql';
const value: DocumentNode;
export default value;
}
Limitation of that typing definition is that only ONE default query can be in a single file
github-actions commented
Issues seem to have gone stale.