ardatan / graphql-import-node

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

How to import all .graphql files in one for easy import #10

Closed sanket-work closed 4 years ago

sanket-work commented 4 years ago

Is there a way to club all .graphql files in one single file and later import the single file wherever required. In the _nodemodules/graphql-import-node/register.d.ts I do see a module named *.graphqlsbut no associated documentation.

ardatan commented 4 years ago

*.graphqlsdoesn't stand for graphql in plural but graphql schema. https://github.com/ardatan/graphql-toolkit#-file-loading-for-both-schema-and-resolvers I recommend you to use something like this to load multiple files at once easily.