Releases: MichalLytek/type-graphql
Releases · MichalLytek/type-graphql
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
0.4.0
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 ofObject.create
Changes
- update
graphql
dependency from^0.12.3
to^0.13.0
0.3.0
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
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
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
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
Initial release with basic functionality