Skip to content

Releases: MichalLytek/type-graphql

0.12.0

01 Jun 15:42

Choose a tag to compare

0.12.0 Pre-release
Pre-release

Features

  • Breaking Change: remove deprecated ActionData and FilterActionData interfaces
  • add support for resolver classes inheritance
  • add name decorator option for @Field and @FieldResolver decorators that allows to set the schema name different than the property name

0.11.3

16 May 10:02

Choose a tag to compare

0.11.3 Pre-release
Pre-release

Features

  • make auth checker feature generic typed (default string for backward compatibility)

0.11.2

29 Apr 17:47

Choose a tag to compare

0.11.2 Pre-release
Pre-release

Features

  • attach MetadataStorage to global scope (support multiple packages/modules)
  • rename and deprecate ActionData and FilterActionData interfaces to ResolverData and ResolverFilterData

0.11.1

24 Apr 16:04

Choose a tag to compare

0.11.1 Pre-release
Pre-release

Features

  • add support for returning null instead of throwing authorization error (authMode property of buildSchema config)
  • add support for generating object type field in schema from method with @FieldResolver

Fixes

  • fix bug when converting object scalars to target class instance (#65)

0.11.0

24 Apr 16:05

Choose a tag to compare

0.11.0 Pre-release
Pre-release

Features

  • add support for creating and attaching middlewares, guards and interceptors to fields and resolvers
  • Breaking Change: remove deprecated decorators with GraphQL prefix and { array: true } type option

0.10.0

15 Apr 14:44

Choose a tag to compare

0.10.0 Pre-release
Pre-release

Features

  • add buildSchemaSync function to build the schema synchronously (unsafe! without additional errors checks)
  • update package dependencies
  • Breaking Change: update @types/graphql to 0.13.0

Fixes

  • decorator option validate is now merged with buildSchema's validate config instead of overwriting it

0.9.1

03 Apr 15:09

Choose a tag to compare

0.9.1 Pre-release
Pre-release

Fixes

  • fix bug with extending non-TypeGraphQL classes

0.9.0

01 Apr 15:11

Choose a tag to compare

0.9.0 Pre-release
Pre-release

Features

  • add support for GraphQL subscriptions using graphql-subscriptions
  • update package dependencies
  • deprecate { array: true } type option

0.8.1

25 Mar 14:11

Choose a tag to compare

0.8.1 Pre-release
Pre-release

Features

  • add @Info() decorator for injecting GraphQL resolve info to resolvers
  • add support for injecting parts of root and context objects with @Root("field") and @Ctx("field") decorators

0.8.0

15 Mar 18:34

Choose a tag to compare

0.8.0 Pre-release
Pre-release

Features

  • add base support for GraphQL enums using TypeScript enums
  • add support for defining GraphQL unions
  • add support for importing resolvers from file path glob
  • depracate decorators with GraphQL prefix - use @ArgsType, @InputType, @InterfaceType, @ObjectType and @Resolver instead

Fixes

  • fix not working array type notation in circular dependencies (correct thunk generation)