TypeGraphQL v1.2.0-rc.1 Release Notes
-
๐ Features
- ๐ฅ Breaking Change:
AuthChecker
type is now "function or class" - update toAuthCheckerFn
if the function form is needed in the code - ๐ support class-based auth checker, which allows for dependency injection
- ๐ allow defining directives for interface types and theirs fields, with inheritance for object types fields (#744)
- ๐ allow deprecating input fields and args (#794)
- ๐ support disabling inferring default values (#793)
- ๐ support readonly arrays for roles of
@Authorized
decorator (#935) - โ add sync version of
buildTypeDefsAndResolvers
function (#803) ### ๐ Fixes - ๐ฅ Breaking Change: properly emit types nullability when
defaultValue
is provided and removeConflictingDefaultWithNullableError
error (#751) - ๐ allow defining extension on field resolver level for fields also defined as a property of the class (#776)
- ๐ fix throwing error when schema with dynamic default value was built again (#787)
- ๐ fix converting inputs with fields of nested array type (#801)
- disable broken exposing input types fields under a changed name via
@Field({ name: "..." })
### Others - ๐ฅ Breaking Change: update
graphql-js
peer dependency to^15.5.0
- ๐ฅ Breaking Change: