- Fix operations factories name when using a custom root query #75
- Nullable fields can now be initialized by setting the
maybeValueDefault
option to"{defaultValue}"
- 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
- Add objects' and inputs' description above the factory functions
- Add a plugin that generates factories for operations
- Add default value for factories overrides
- Add support for unions
- Generate factories for the root types: Query, Mutation and Subscription
- Generate factories for operations and each of their selections
- Fix support for external fragments
- 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
- Add the
graphql-codegen-factories/operations
entry point to generate factories for operations
- Fix the factories output when the schema has directives
- 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
- Upgrade dependencies and drop support for Node 10 in the process
- Add support for interfaces default value generation
- Add support for unions default value generation
- Fix default value generation for enums that contain an underscore in their name