Add workspace scoping to pipeline progress and expose findManyPipelineProgress on graphql
17 lines
776 B
TypeScript
17 lines
776 B
TypeScript
import { Field } from '@nestjs/graphql';
|
|
import { InputType } from '@nestjs/graphql';
|
|
import { PipelineProgressWhereUniqueInput } from './pipeline-progress-where-unique.input';
|
|
import { Type } from 'class-transformer';
|
|
import { PipelineProgressCreateWithoutWorkspaceInput } from './pipeline-progress-create-without-workspace.input';
|
|
|
|
@InputType()
|
|
export class PipelineProgressCreateOrConnectWithoutWorkspaceInput {
|
|
@Field(() => PipelineProgressWhereUniqueInput, { nullable: false })
|
|
@Type(() => PipelineProgressWhereUniqueInput)
|
|
where!: PipelineProgressWhereUniqueInput;
|
|
|
|
@Field(() => PipelineProgressCreateWithoutWorkspaceInput, { nullable: false })
|
|
@Type(() => PipelineProgressCreateWithoutWorkspaceInput)
|
|
create!: PipelineProgressCreateWithoutWorkspaceInput;
|
|
}
|