feat-pipelines #1
@ -9,7 +9,7 @@ import { ListPipelineArgs } from './dtos/list-pipelines.args';
|
||||
export class PipelinesResolver {
|
||||
constructor(private readonly service: PipelinesService) {}
|
||||
@Query(() => [Pipeline])
|
||||
async findPipelines(@Args() dto: ListPipelineArgs) {
|
||||
async listPipelines(@Args() dto: ListPipelineArgs) {
|
||||
return await this.service.list(dto);
|
||||
}
|
||||
|
||||
@ -20,7 +20,7 @@ export class PipelinesResolver {
|
||||
|
||||
@Mutation(() => Pipeline)
|
||||
async createPipeline(
|
||||
@Args('Pipeline', { type: () => CreatePipelineInput })
|
||||
@Args('pipeline', { type: () => CreatePipelineInput })
|
||||
dto: UpdatePipelineInput,
|
||||
) {
|
||||
return await this.service.create(dto);
|
||||
|
Loading…
Reference in New Issue
Block a user