Skip to content

Releases: MichalLytek/type-graphql

0.11.1

24 Apr 16:04
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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)

0.7.0

05 Mar 19:23
Compare
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
Compare
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
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