Add comments to Prisma Schema and GraphQL server (#162)
* Lowercase all relations in prisma/graphql schema * Add Comments data model and graphql schema * Make comments availalble on the api through resolvers and guard them * Update front graphql schema * Fix PR
This commit is contained in:
@ -7,6 +7,8 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str
|
||||
import { WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-update-many-without-workspace-nested.input';
|
||||
import { CompanyUpdateManyWithoutWorkspaceNestedInput } from '../company/company-update-many-without-workspace-nested.input';
|
||||
import { PersonUpdateManyWithoutWorkspaceNestedInput } from '../person/person-update-many-without-workspace-nested.input';
|
||||
import { CommentThreadUpdateManyWithoutWorkspaceNestedInput } from '../comment-thread/comment-thread-update-many-without-workspace-nested.input';
|
||||
import { CommentUpdateManyWithoutWorkspaceNestedInput } from '../comment/comment-update-many-without-workspace-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class WorkspaceUpdateInput {
|
||||
@ -34,11 +36,19 @@ export class WorkspaceUpdateInput {
|
||||
@Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
WorkspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
|
||||
workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
|
||||
|
||||
@Field(() => CompanyUpdateManyWithoutWorkspaceNestedInput, { nullable: true })
|
||||
companies?: CompanyUpdateManyWithoutWorkspaceNestedInput;
|
||||
|
||||
@Field(() => PersonUpdateManyWithoutWorkspaceNestedInput, { nullable: true })
|
||||
people?: PersonUpdateManyWithoutWorkspaceNestedInput;
|
||||
|
||||
@Field(() => CommentThreadUpdateManyWithoutWorkspaceNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
commentThreads?: CommentThreadUpdateManyWithoutWorkspaceNestedInput;
|
||||
|
||||
@Field(() => CommentUpdateManyWithoutWorkspaceNestedInput, { nullable: true })
|
||||
comments?: CommentUpdateManyWithoutWorkspaceNestedInput;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user