graphql-loader
graphql-loader copied to clipboard
Support apollo-codegen style type generation
It would be really neat if we could provide typescript (or flow?) definitions with this package as well, using apollo-codegen as a backend.
Some prior art here https://github.com/Jimdo/typings-for-css-modules-loader.
Perhaps this belongs into a separate webpack-codegen package...
@stephen FWIW this is possible with gql2ts. See https://github.com/avantcredit/gql2ts/issues/127#issuecomment-359810516 (I'm actually planning on publishing a webpack loader for it soon)