File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
src/components/notifications/dto Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { Field, InterfaceType } from '@nestjs/graphql';
2
2
import { DateTime } from 'luxon' ;
3
3
import { keys as keysOf } from 'ts-transformer-keys' ;
4
4
import { DateTimeField , Resource , SecuredProps } from '~/common' ;
5
- import { LinkTo , RegisterResource } from '~/core/resources' ;
5
+ import { RegisterResource } from '~/core/resources' ;
6
6
7
7
@RegisterResource ( )
8
8
@InterfaceType ( {
@@ -12,12 +12,15 @@ export class Notification extends Resource {
12
12
static readonly Props : string [ ] = keysOf < Notification > ( ) ;
13
13
static readonly SecuredProps : string [ ] = keysOf < SecuredProps < Notification > > ( ) ;
14
14
15
- readonly for : LinkTo < 'User' > ;
16
-
17
- @ Field ( ( ) => Boolean )
15
+ @ Field ( ( ) => Boolean , {
16
+ description : 'Whether the notification is unread for the requesting user' ,
17
+ } )
18
18
readonly unread : boolean ;
19
19
20
- @DateTimeField ( { nullable : true } )
20
+ @DateTimeField ( {
21
+ nullable : true ,
22
+ description : 'When the notification was read for the requesting user' ,
23
+ } )
21
24
readonly readAt : DateTime | null ;
22
25
}
23
26
You can’t perform that action at this time.
0 commit comments