@@ -69,9 +69,10 @@ const RequiredWhenNotInDev = RequiredWhen(() => Engagement)({
69
69
* This should be used for GraphQL but never for TypeScript types.
70
70
*/
71
71
class Engagement extends Interfaces {
72
- static readonly Relations = {
73
- ...Commentable . Relations ,
74
- } satisfies ResourceRelationsShape ;
72
+ static readonly Relations = ( ( ) => ( {
73
+ ...Resource . Relations ( ) ,
74
+ ...Commentable . Relations ( ) ,
75
+ } ) ) satisfies ResourceRelationsShape ;
75
76
static readonly Parent = ( ) =>
76
77
import ( '../../project/dto' ) . then ( ( m ) => m . IProject ) ;
77
78
static readonly resolve = resolveEngagementType ;
@@ -163,11 +164,11 @@ export { Engagement as IEngagement, type AnyEngagement as Engagement };
163
164
implements : [ Engagement ] ,
164
165
} )
165
166
export class LanguageEngagement extends Engagement {
166
- static readonly Relations = {
167
- ...Engagement . Relations ,
167
+ static readonly Relations = ( ( ) => ( {
168
+ ...Engagement . Relations ( ) ,
168
169
// why is this singular?
169
170
product : [ Product ] ,
170
- } satisfies ResourceRelationsShape ;
171
+ } ) ) satisfies ResourceRelationsShape ;
171
172
static readonly Parent = ( ) =>
172
173
import ( '../../project/dto' ) . then ( ( m ) => m . TranslationProject ) ;
173
174
0 commit comments