Skip to content

Commit 5d139c8

Browse files
committed
Declare some DbLabels explicitly to maintain previous functionality
1 parent 80a9510 commit 5d139c8

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/components/changeset/dto/changeset-aware.dto.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Field, InterfaceType } from '@nestjs/graphql';
22
import { stripIndent } from 'common-tags';
3-
import { type ID, IdField } from '~/common';
3+
import { DbLabel, type ID, IdField } from '~/common';
44
import { type BaseNode } from '~/core/database/results';
55
import { Changeset } from './changeset.dto';
66

@@ -11,6 +11,9 @@ import { Changeset } from './changeset.dto';
1111
returned.
1212
`,
1313
})
14+
// Maintaining previous functionality.
15+
// This could be removed (and data migrated) to query it.
16+
@DbLabel(null)
1417
export abstract class ChangesetAware {
1518
@IdField({
1619
description: "The object's ID",

src/components/pin/dto/pinnable.dto.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import { Field, InterfaceType } from '@nestjs/graphql';
2-
import { type ID, IdField } from '~/common';
2+
import { DbLabel, type ID, IdField } from '~/common';
33

44
@InterfaceType({
55
description: 'An item that can be pinned',
66
})
7+
// Maintaining previous functionality.
8+
// This could be removed (and data migrated) to query it.
9+
@DbLabel(null)
710
export class Pinnable {
811
@IdField()
912
readonly id: ID;

src/components/workflow/dto/workflow-event.dto.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Field, ObjectType } from '@nestjs/graphql';
22
import { DateTime } from 'luxon';
33
import {
44
DateTimeField,
5+
DbLabel,
56
type ID,
67
IdField,
78
type MadeEnum,
@@ -18,6 +19,7 @@ export function WorkflowEvent<State extends string>(
1819
transitionType: ReturnType<typeof WorkflowTransition>,
1920
) {
2021
@ObjectType({ isAbstract: true })
22+
@DbLabel('WorkflowEvent')
2123
abstract class WorkflowEventClass {
2224
@IdField()
2325
readonly id: ID;

0 commit comments

Comments
 (0)