ardatan / graphql-import-node

Import 'graphql' files in NodeJS
80 stars 14 forks source link

typescript is not compiling without "import 'graphql-import-node';" #9

Closed furozen closed 4 years ago

furozen commented 4 years ago

typescript is not compiling without "import 'graphql-import-node';"

I added "graphql-import-node" to package.json

but IDE redlined "import * as schema from './schema.graphql'" till I added import 'graphql-import-node'; to index.ts so please update readme.ts

ardatan commented 4 years ago

@furozen It's already written there; https://github.com/ardatan/graphql-import-node#usage-with-node-javascript But I added it again in TypeScript section.