graphql-loader icon indicating copy to clipboard operation
graphql-loader copied to clipboard

Support apollo-codegen style type generation

Open stephen opened this issue 7 years ago • 1 comments

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 avatar Feb 16 '18 08:02 stephen

@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)

brettjurgens avatar Mar 09 '18 04:03 brettjurgens