fix: workspace shouldn't be hidden in the output (#358)
This commit is contained in:
@ -28,6 +28,6 @@ export class WorkspaceMember {
|
|||||||
@Field(() => User, { nullable: false })
|
@Field(() => User, { nullable: false })
|
||||||
user?: User;
|
user?: User;
|
||||||
|
|
||||||
@HideField()
|
@Field(() => Workspace, { nullable: false })
|
||||||
workspace?: Workspace;
|
workspace?: Workspace;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -168,7 +168,7 @@ model WorkspaceMember {
|
|||||||
user User @relation(fields: [userId], references: [id])
|
user User @relation(fields: [userId], references: [id])
|
||||||
/// @TypeGraphQL.omit(input: true, output: true)
|
/// @TypeGraphQL.omit(input: true, output: true)
|
||||||
workspaceId String
|
workspaceId String
|
||||||
/// @TypeGraphQL.omit(input: true, output: true)
|
/// @TypeGraphQL.omit(input: true, output: false)
|
||||||
workspace Workspace @relation(fields: [workspaceId], references: [id])
|
workspace Workspace @relation(fields: [workspaceId], references: [id])
|
||||||
|
|
||||||
@@map("workspace_members")
|
@@map("workspace_members")
|
||||||
|
|||||||
Reference in New Issue
Block a user