Skip to content

Releases: zhouzi/graphql-codegen-factories

1.2.1

06 Mar 16:18
Compare
Choose a tag to compare

Fixed

  • Fix operations factories name when using a custom root query #75

1.2.0

20 Jan 15:30
Compare
Choose a tag to compare

Added

  • Nullable fields can now be initialized by setting the maybeValueDefault option to "{defaultValue}"

1.1.0

19 Jan 12:33
Compare
Choose a tag to compare

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

07 May 11:44
Compare
Choose a tag to compare

Added

  • Add a plugin that generates factories for operations

Changed

  • Add default value for factories overrides

1.0.0-beta.4

24 Apr 21:33
Compare
Choose a tag to compare
1.0.0-beta.4 Pre-release
Pre-release

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

11 Apr 07:36
Compare
Choose a tag to compare
1.0.0-beta.3 Pre-release
Pre-release

Fixed

  • Fix support for external fragments

1.0.0-beta.2

27 Mar 13:03
Compare
Choose a tag to compare
1.0.0-beta.2 Pre-release
Pre-release

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

26 Mar 16:22
Compare
Choose a tag to compare
1.0.0-beta.1 Pre-release
Pre-release

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

22 Feb 22:49
Compare
Choose a tag to compare
1.0.0-beta.0 Pre-release
Pre-release

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