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:
@ -6,6 +6,8 @@ import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-d
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-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 WorkspaceUpdateWithoutCompaniesInput {
|
||||
@ -33,8 +35,16 @@ export class WorkspaceUpdateWithoutCompaniesInput {
|
||||
@Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
WorkspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
|
||||
workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
|
||||
|
||||
@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