File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { InterfaceType } from '@nestjs/graphql' ;
2
2
import { keys as keysOf } from 'ts-transformer-keys' ;
3
- import { Resource , ResourceRelationsShape , SecuredProps } from '~/common' ;
3
+ import {
4
+ resolveByTypename ,
5
+ Resource ,
6
+ ResourceRelationsShape ,
7
+ SecuredProps ,
8
+ } from '~/common' ;
4
9
import { e } from '~/core/edgedb' ;
5
10
import { RegisterResource } from '~/core/resources' ;
6
11
import { CommentThread } from './comment-thread.dto' ;
@@ -9,6 +14,7 @@ import { CommentThread } from './comment-thread.dto';
9
14
@InterfaceType ( {
10
15
description : 'A resource that can be commented on' ,
11
16
implements : [ Resource ] ,
17
+ resolveType : resolveByTypename ( Commentable . name ) ,
12
18
} )
13
19
export abstract class Commentable extends Resource {
14
20
static readonly Props : string [ ] = keysOf < Commentable > ( ) ;
You can’t perform that action at this time.
0 commit comments