Releases: MichalLytek/type-graphql
Releases · MichalLytek/type-graphql
0.7.0
Features
- add authorization feature -
@Authorizeddecorator andauthCheckerfunction in schema options (see docs) - add support for defining array type using mongoose-like notation
[Type] - Breaking Change: remove deprecated
@GraphQLArgumentTypedecorator - use@GraphQLArgsTypeinstead
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
buildSchemaasync - now it returns a Promise ofGraphQLSchema - rename and deprecate
GraphQLArgumentTypedecorator - useGraphQLArgsTypeinstead
Fixes
- allow for no args in
@GraphQLResolverdecorator to keep consistency with other resolver classes
0.5.0
Features
- create instance of root object when it's type provided in resolver
- change
Datescalar names toGraphQLISODateTimeandGraphQLTimestamp - support only
Dateobjects (instances) serialization inGraphQLTimestamp(and inGraphQLISODateTimetoo) - update package dependencies
- add test suite with 92%+ coverage
Fixes
- Breaking change: switch array
nullableoption behavior from[Type]!to[Type!] - add more detailed type reflection error message (parameters support)
- fix
ResolverInterfaceresolver function type (allow additional parameters) - add support for named param in
@GraphQLResolverlambda and for object class as param
0.4.0
Features
- add basic support for automatic arguments and inputs validation using
class-validator - add interface
ResolverInterfacefor type checking of resolver class methods (field resolvers)
Fixes
- fix default values for arg/input fields (class property initializers) - use
newinstead ofObject.create
Changes
- update
graphqldependency from^0.12.3to^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
@Contextdecorator 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
plainToClassto vanilla JS) - fix convertings field and resolvers args errors while converting gql objects (weird
prototypestuffs)
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 (
plainToClassbug)
First version
Initial release with basic functionality