asa-graphql-ts-typescript-operations
v0.1.9
Published
Fork of @graphql-codegen/typescript-operations
Downloads
6
Readme
A fork of https://github.com/dotansimha/graphql-code-generator to create a custom version of the typescript operations plugin, i.e. forking the @graphql-codegen/typescript-operations package.
The fork adds a new option referenceFragmentSpreads, which directs the codegen to apply fragment spreads as types, rather than inlining. It also directs the codegen to just assume all fragment types are available, which relies on importing any fragment types that are externally defined. This importing must be handled by https://github.com/asa-graphql-codegen/asa-graphql-ts-typed-document. In other words, referenceFragmentSpreads
assumes asa-graphql-ts-typed-document
is being used.
Running Tests
yarn test --testNamePattern="TypeScript Operations Plugin"