Skip to content

Commit be52e1a

Browse files
committed
Fix Commentable GQL type resolution for EdgeDB FQNs
1 parent 6dbe9f9 commit be52e1a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/comments/dto/commentable.dto.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import { InterfaceType } from '@nestjs/graphql';
22
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';
49
import { e } from '~/core/edgedb';
510
import { RegisterResource } from '~/core/resources';
611
import { CommentThread } from './comment-thread.dto';
@@ -9,6 +14,7 @@ import { CommentThread } from './comment-thread.dto';
914
@InterfaceType({
1015
description: 'A resource that can be commented on',
1116
implements: [Resource],
17+
resolveType: resolveByTypename(Commentable.name),
1218
})
1319
export abstract class Commentable extends Resource {
1420
static readonly Props: string[] = keysOf<Commentable>();

0 commit comments

Comments
 (0)