type-graphql
Advanced tools
Changelog
v2.0.0-rc.2
createResolverClassMiddlewareDecorator
createParameterDecorator
and its second argument CustomParameterOptions
- arg
(#1325)graphql-scalars
peer dependency to ^1.23.0
createMethodDecorator
into createMethodMiddlewareDecorator
createParamDecorator
to createParameterDecorator
Changelog
v2.0.0-rc.1
Reflect
polyfills than reflect-metadata
by checking only used Reflect
API (#1102)@ArgsType
classes in deeply nested inheritance chain (#1644)@Directive
decorator (#1423)Changelog
v2.0.0-beta.6
name
arguments (#1284)name
argument string contain a double underscore (__
) when using buildTypeDefsAndResolvers()
(#1309)graphql-scalars
peer dependency to ^1.22.4
Changelog
v2.0.0-beta.4
type-graphql/shim
(and /node_modules/type-graphql/build/typings/shim.ts
)graphql-js
peer dependency to ^16.8.1
@graphql-yoga
instead of graphql-subscriptions
as the subscriptions enginePubSub
implementation into buildSchema
option when using @Subscription
@PubSub
in favor of directly importing created PubSub
implementationPublisher
and PubSubEngine
typesResolverFilterData
into SubscriptionHandlerData
and ResolverTopicData
into SubscribeResolverData
@Field
of @Args
@Arg
validateFn
option of @Arg
and @Args
decorators@Subscription
decorator optionChangelog
v2.0.0-beta.3
graphql-js
peer dependency to ^16.7.1
ArgumentValidationError
and replace UnauthorizedError
and ForbiddenError
with AuthenticationError
, AuthorizationError
that are extending GraphQLError
to let the error details be accessible in the extensions
propertyClassType
constraint from ClassType<T = any>
to ClassType<T extends object = object>
in order to make it work properly with new TS featuresdateScalarMode
option from buildSchema
graphql-scalars
package a peer dependency and use date scalars from it instead of custom onesGraphQLISODateTime
scalar has now a name DateTimeISO
ValidatorFn
signature from ValidatorFn<TArgs>
to ValidatorFn<TContext>
type-graphql
package (CJS and ESM versions)ValidatorFn
to accept array of values (instead of only object | undefined
)Changelog
v2.0.0-beta.2
AuthChecker
type is now "function or class" - update to AuthCheckerFn
if the function form is needed in the codegraphql-js
peer dependency to ^16.6.0
buildSchemaSync
is now also checking the generated schema for errorsvalidate
option of buildSchema
is set to false
by default - integration with class-validator
has to be turned on explicitlyvalidate
option of buildSchema
doesn't accept anymore a custom validation function - use validateFn
option instead@Authorized
decorator (#935)buildTypeDefsAndResolvers
function (#803)implements
option of @ObjectType
decorator (#1425)defaultValue
is provided and remove ConflictingDefaultWithNullableError
error (#751)@Field({ name: "..." })
class-validator
peer dependency to >=0.14.0
resolvers: string[]
build schema option)isAbstract
legacy decorator optioncommentDescriptions
option from PrintSchemaOptions
(no more support for #
comments in SDL by GraphQL v16)Changelog
v1.1.1
resolveType
function returns undefined
or null
(#731)