graphql-import-files
Light and easy package that will load .graphql files and use them with syntax highlighting.
Light and easy package that will load .graphql files and use them with syntax highlighting.
This extension makes your NodeJS application able to import `graphql` files. It uses `require.extensions` to allow you to import/require from `.graphql` files in NodeJS environment. The imported content will be a GraphQL string as is.