Create GraphQL schema and resolvers with TypeScript, using classes and decorators!
MIT License
Bot releases are hidden (Show)
name
arguments (#1284)name
argument string contain a double underscore (__
) when using buildTypeDefsAndResolvers()
(#1309)graphql-scalars
peer dependency to ^1.22.4
Published by MichalLytek 6 months ago
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 optionPublished by MichalLytek over 1 year ago
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 optionPublished by MichalLytek about 3 years ago
AuthChecker
type is now "function or class" - update to AuthCheckerFn
if the function form is needed in the code@Authorized
decorator (#935)buildTypeDefsAndResolvers
function (#803)defaultValue
is provided and remove ConflictingDefaultWithNullableError
error (#751)@Field({ name: "..." })
graphql-js
peer dependency to ^15.5.0
Published by MichalLytek almost 4 years ago
resolveType
function returns undefined
or null
(#731)Published by MichalLytek about 4 years ago
validate
option to buildSchema
GraphQLISODateTime
and GraphQLTimestamp
scalars@FieldResolver
when that resolvers classes aren't provided in resolvers
arrayCannotDetermineGraphQLTypeError
error messagePublished by MichalLytek about 4 years ago
graphql-js
peer dependency to ^15.3.0
graphql-query-complexity
dependency to ^0.7.0
and drop support for fieldConfigEstimator
(use fieldExtensionsEstimator
instead)sortedSchema
option in PrintSchemaOptions
and emit sorted schema file by defaultclass-validator
a peer dependency of version >=0.12.0
that needs to be installed manually (#366)CannotDetermineTypeError
and make other error messages more detailed and specific[Item]
) is requiredTypeResolver
interface to match with GraphQLTypeResolver
from graphql-js
@Directive()
decorator (#369)@Extensions
decorator for putting metadata into GraphQL types config (#521){ autoRegisterImplementations: false }
option to prevent automatic emitting in schema all the object types that implements used interface type (#595)createResolversMap
utility that generates apollo-like resolvers object.get()
method returns a Promise
of resolver instancetslib
, graphql-query-complexity
)GraphQLTimestamp
and GraphQLISODateTime
scalars when returned value is not a Date
instance - now it throws explicit error insteadname
option on interface fields (#567)authChecker
during subscribe phase for subscriptions (#578)buildSchema
resolveType
is used@InputType
or @ObjectType
classes (#626)DepreciationOptions
interfacePublished by MichalLytek over 4 years ago
[Item]
) is requiredgraphql-js
peer dependency to ^15.1.0
tslib
, graphql-query-complexity
)Published by MichalLytek over 4 years ago
createResolversMap
utility that generates apollo-like resolvers object.get()
method returns a Promise
of resolver instance@InputType
or @ObjectType
classes (#626)Published by MichalLytek over 4 years ago
graphql-js
peer dependency to ^15.0.0
graphql-query-complexity
dependency to ^0.5.0
and drop support for fieldConfigEstimator
(use fieldExtensionsEstimator
instead)sortedSchema
option in PrintSchemaOptions
and emit sorted schema file by defaultclass-validator
a peer dependency of version >=0.12.0
that needs to be installed manually (#366)CannotDetermineTypeError
and make other error messages more detailed and specificTypeResolver
interface to match with GraphQLTypeResolver
from graphql-js
@Directive()
decorator (#369)@Extensions
decorator for putting metadata into GraphQL types config (#521){ autoRegisterImplementations: false }
option to prevent automatic emitting in schema all the object types that implements used interface type (#595)GraphQLTimestamp
and GraphQLISODateTime
scalars when returned value is not a Date
instance - now it throws explicit error insteadname
option on interface fields (#567)authChecker
during subscribe phase for subscriptions (#578)buildSchema
resolveType
is usedDepreciationOptions
interfacePublished by MichalLytek almost 5 years ago
MissingSubscriptionTopicsError
error message (#489)Published by MichalLytek about 5 years ago
DepreciationOptions
interface to DeprecationOptions
and deprecate the old onetslib
, semver
, graphql-query-complexity
and glob
)@Field(type => [[Int]])
) (#393)() => TClassTypes
)Published by MichalLytek over 5 years ago
subscribe
function in @Subscription
decorator (#328)Published by MichalLytek over 5 years ago
semver
to ^6.0.0
and graphql-subscriptions
to ^1.1.0
@types/graphql
due to using removed private types (e.g. MaybePromise
) (#320)Published by MichalLytek over 5 years ago
resolveType
function for interfaces and unions (#319)skipCheck
option in buildSchema
to disable checking the correctness of a schemaPublished by MichalLytek over 5 years ago
ObjectType
s that implements InterfaceType
s or extends other classes (#160)Published by MichalLytek over 5 years ago
graphql-js
packages a peer dependencies, bump graphql
to ^14.1.1
and @types/graphql
to ^14.0.7
(#239)useContainer
function and allow to register container by buildSchema
options (#241)PrintSchemaOptions
option commentDescriptions
to false (no more #
comments in SDL)PrintSchemaOptions
in buildSchema.emitSchemaFile
(e.g. commentDescriptions: true
to restore previous behavior)buildTypeDefsAndResolvers
utils function for generating apollo-like typeDefs
and resolvers
pair (#233)formatArgumentValidationError
helper as it's not compatible and not needed in new Apollo Server (#258)@Field(type => Foo)
before finishing module evaluation (allow for extending circular classes using require
)@ArgsType()
classPublished by MichalLytek almost 6 years ago
Published by MichalLytek about 6 years ago
graphql
to ^14.0.2
, graphql-subscriptions
to ^1.0.0
and @types/graphql
to ^14.0.2
buildSchema
optionemitSchemaDefinitionFile
helper function for emitting the schema SDLPublished by MichalLytek about 6 years ago
ClassType
type and export it in package indexcreateUnionType
to remove the 10 types limit (note: requires TypeScript >=3.0.1)graphql-query-complexity
(#139)