Skip to content

Releases: MichalLytek/type-graphql

0.7.0

05 Mar 19:23

Choose a tag to compare

0.7.0 Pre-release
Pre-release

Features

  • add authorization feature - @Authorized decorator and authChecker function in schema options (see docs)
  • add support for defining array type using mongoose-like notation [Type]
  • Breaking Change: remove deprecated @GraphQLArgumentType decorator - use @GraphQLArgsType instead

0.6.0

01 Mar 21:33

Choose a tag to compare

0.6.0 Pre-release
Pre-release

Features

  • add support for defining GraphQL interfaces and implementing it by object types
  • add support for extending input, args, object and interface types classes
  • add support for implementing GraphQL interfaces without decorators duplication
  • Breaking Change: make buildSchema async - now it returns a Promise of GraphQLSchema
  • rename and deprecate GraphQLArgumentType decorator - use GraphQLArgsType instead

Fixes

  • allow for no args in @GraphQLResolver decorator to keep consistency with other resolver classes

0.5.0

23 Feb 12:12

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

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

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

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

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

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

Choose a tag to compare

First version Pre-release
Pre-release

Initial release with basic functionality