Skip to content

Releases: MichalLytek/type-graphql

0.5.0

23 Feb 12:12
Compare
Choose a tag to compare
0.5.0 Pre-release
Pre-release

Features

  • create instance of root object when it's type provided in resolver
  • change Date scalar names to GraphQLISODateTime and GraphQLTimestamp
  • support only Date objects (instances) serialization in GraphQLTimestamp (and in GraphQLISODateTime too)
  • update package dependencies
  • add test suite with 92%+ coverage

Fixes

  • Breaking change: switch array nullable option behavior from [Type]! to [Type!]
  • add more detailed type reflection error message (parameters support)
  • fix ResolverInterface resolver function type (allow additional parameters)
  • add support for named param in @GraphQLResolver lambda and for object class as param

0.4.0

10 Feb 21:40
Compare
Choose a tag to compare
0.4.0 Pre-release
Pre-release

Features

  • add basic support for automatic arguments and inputs validation using class-validator
  • add interface ResolverInterface for type checking of resolver class methods (field resolvers)

Fixes

  • fix default values for arg/input fields (class property initializers) - use new instead of Object.create

Changes

  • update graphql dependency from ^0.12.3 to ^0.13.0

0.3.0

08 Feb 11:21
Compare
Choose a tag to compare
0.3.0 Pre-release
Pre-release

Features

  • add support for descriptions in schema (types, args, queries, etc.)
  • add support for declaring depreciation reason on object fields and queries/mutations

Fixes

  • fix scalars ID alias (GraphQLID not GraphQLString)

0.2.0

06 Feb 17:39
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release

Features

  • add support for Date type (built-in scalar)
  • add support for custom scalars (and mapping it to TS types)
  • change @Context decorator name to @Ctx

0.1.2

03 Feb 20:00
Compare
Choose a tag to compare
0.1.2 Pre-release
Pre-release

Fixes

  • fix missing type args in schema when declared in field resolver
  • fix missing resolver function when defined as type field method
  • fix creating instances of root object when internal fields are Promises (switch from plainToClass to vanilla JS)
  • fix convertings field and resolvers args errors while converting gql objects (weird prototype stuffs)

0.1.1

02 Feb 10:21
Compare
Choose a tag to compare
0.1.1 Pre-release
Pre-release

Features

  • add support for ommiting return type when use type options, in selected decorators (@Field, @Arg)

Fixes

  • fix class getter resolvers bug - missing fields from prototype (plainToClass bug)

First version

31 Jan 21:14
Compare
Choose a tag to compare
First version Pre-release
Pre-release

Initial release with basic functionality