Releases: MichalLytek/type-graphql
Releases · MichalLytek/type-graphql
0.11.1
Features
- add support for returning null instead of throwing authorization error (
authMode
property ofbuildSchema
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
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
Features
- add
buildSchemaSync
function to build the schema synchronously (unsafe! without additional errors checks) - update package dependencies
- Breaking Change: update
@types/graphql
to0.13.0
Fixes
- decorator option
validate
is now merged withbuildSchema
'svalidate
config instead of overwriting it
0.9.1
Fixes
- fix bug with extending non-TypeGraphQL classes
0.9.0
Features
- add support for GraphQL subscriptions using
graphql-subscriptions
- update package dependencies
- deprecate
{ array: true }
type option
0.8.1
Features
- add
@Info()
decorator for injecting GraphQL resolve info to resolvers - add support for injecting parts of
root
andcontext
objects with@Root("field")
and@Ctx("field")
decorators
0.8.0
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
Features
- add authorization feature -
@Authorized
decorator andauthChecker
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
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 ofGraphQLSchema
- rename and deprecate
GraphQLArgumentType
decorator - useGraphQLArgsType
instead
Fixes
- allow for no args in
@GraphQLResolver
decorator to keep consistency with other resolver classes
0.5.0
Features
- create instance of root object when it's type provided in resolver
- change
Date
scalar names toGraphQLISODateTime
andGraphQLTimestamp
- support only
Date
objects (instances) serialization inGraphQLTimestamp
(and inGraphQLISODateTime
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