Releases: zhouzi/graphql-codegen-factories
Releases · zhouzi/graphql-codegen-factories
1.2.1
1.2.0
1.1.0
Added
- Add
maybeValueDefault
option to customize the nullable fields' default value - Add
inputMaybeValueDefault
option to customize the nullable inputs' fields' default value - Add
disableDescriptions
option to toggle on/off objects and inputs' description added above the factory functions
Changed
- Add objects' and inputs' description above the factory functions
1.0.0
1.0.0-beta.4
Added
- Add support for unions
- Generate factories for the root types: Query, Mutation and Subscription
- Generate factories for operations and each of their selections
1.0.0-beta.3
Fixed
- Fix support for external fragments
1.0.0-beta.2
Fixed
- Fix support for unnamed operations
- Fix support for lists and nullable fields
- Fix fragments support by stripping them from the output
- Fix support for aliased primitive fields
1.0.0-beta.1
Added
- Add the
graphql-codegen-factories/operations
entry point to generate factories for operations
Fixed
- Fix the factories output when the schema has directives
1.0.0-beta.0
Added
- Add
config.typesPath
to generate the factories in a different file than the types - Add
config.importTypesNamespace
to customize the name of the import namespace
Removed
- Upgrade dependencies and drop support for Node 10 in the process