Having a base @ObjectType({ isAbstract: true }) class decorated with @Directive('@key(fields: "id")') does not apply that directive to inherited classes.
Minimum reproduction code
N/A
Steps to reproduce
Copy sample 31 for code-first federation.
Add a model.base.ts to users-application/src/users/models:
Is there an existing issue for this?
Current behavior
Having a base
@ObjectType({ isAbstract: true })
class decorated with@Directive('@key(fields: "id")')
does not apply that directive to inherited classes.Minimum reproduction code
N/A
Steps to reproduce
model.base.ts
tousers-application/src/users/models
:user.model.ts
:Expected behavior
The directive is applied to all inheriting classes.
Package version
12.0.8
Graphql version
NestJS version
^10.0.3
Node.js version
18.17.0
In which operating systems have you tested?
Other