asa-graphql-ts-typescript-operations
TypeScript icon, indicating that this package has built-in type declarations

0.1.9 • Public • Published

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"

Readme

Keywords

none

Package Sidebar

Install

npm i asa-graphql-ts-typescript-operations

Weekly Downloads

11

Version

0.1.9

License

MIT

Unpacked Size

285 kB

Total Files

35

Last publish

Collaborators

  • chriskrycho
  • asakusuma