Fix ObjectType casing and conflict between Relation and RelationMetadata (#9849)
Fixes #9827 Also uncovered a conflict with `@objectType('Relation')` and `@objectType('relation)` I don't want to address it in this PR so I will create a followup issue when we close this but I think there's a confusion between Relation/RelationMetadata, it's unclear what is what --------- Co-authored-by: Antoine Moreaux <moreaux.antoine@gmail.com>
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import { ObjectType, Field } from '@nestjs/graphql';
|
||||
import { Field, ObjectType } from '@nestjs/graphql';
|
||||
|
||||
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||
|
||||
@ObjectType('TimelineCalendarEventParticipant')
|
||||
@ObjectType()
|
||||
export class TimelineCalendarEventParticipant {
|
||||
@Field(() => UUIDScalarType, { nullable: true })
|
||||
personId: string | null;
|
||||
|
||||
@ -4,7 +4,7 @@ import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/
|
||||
import { TimelineCalendarEventParticipant } from 'src/engine/core-modules/calendar/dtos/timeline-calendar-event-participant.dto';
|
||||
import { CalendarChannelVisibility } from 'src/modules/calendar/common/standard-objects/calendar-channel.workspace-entity';
|
||||
|
||||
@ObjectType('LinkMetadata')
|
||||
@ObjectType()
|
||||
class LinkMetadata {
|
||||
@Field()
|
||||
label: string;
|
||||
@ -13,7 +13,7 @@ class LinkMetadata {
|
||||
url: string;
|
||||
}
|
||||
|
||||
@ObjectType('LinksMetadata')
|
||||
@ObjectType()
|
||||
export class LinksMetadata {
|
||||
@Field()
|
||||
primaryLinkLabel: string;
|
||||
@ -25,7 +25,7 @@ export class LinksMetadata {
|
||||
secondaryLinks: LinkMetadata[] | null;
|
||||
}
|
||||
|
||||
@ObjectType('TimelineCalendarEvent')
|
||||
@ObjectType()
|
||||
export class TimelineCalendarEvent {
|
||||
@Field(() => UUIDScalarType)
|
||||
id: string;
|
||||
|
||||
@ -2,7 +2,7 @@ import { Field, Int, ObjectType } from '@nestjs/graphql';
|
||||
|
||||
import { TimelineCalendarEvent } from 'src/engine/core-modules/calendar/dtos/timeline-calendar-event.dto';
|
||||
|
||||
@ObjectType('TimelineCalendarEventsWithTotal')
|
||||
@ObjectType()
|
||||
export class TimelineCalendarEventsWithTotal {
|
||||
@Field(() => Int)
|
||||
totalNumberOfCalendarEvents: number;
|
||||
|
||||
Reference in New Issue
Block a user