Create GraphQL schema and resolvers with TypeScript, using classes and decorators!
createResolversMap
utility that generates apollo-like resolvers object.get()
method returns a Promise
of resolver instance@InputType
or @ObjectType
classes (#626)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
interfaceDepreciationOptions
interface to DeprecationOptions
and deprecate the old onetslib
, semver
, graphql-query-complexity
and glob
)@Field(type => [[Int]])
) (#393)() => TClassTypes
)resolveType
function for interfaces and unions (#319)skipCheck
option in buildSchema
to disable checking the correctness of a schemaObjectType
s that implements InterfaceType
s or extends other classes (#160)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()
class