TypeGraphQL v1.2.0-rc.1 Release Notes

  • ๐Ÿ”‹ Features

    • ๐Ÿ’ฅ Breaking Change: AuthChecker type is now "function or class" - update to AuthCheckerFn 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 remove ConflictingDefaultWithNullableError 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