UNPKG

@nestjs/graphql

Version:

Nest - modern, fast, powerful node.js web framework (@graphql)

14 lines (13 loc) 612 B
import 'reflect-metadata'; import { Complexity } from '../interfaces'; import { BaseTypeOptions } from '../interfaces/base-type-options.interface'; import { ReturnTypeFunc } from '../interfaces/return-type-func.interface'; export interface MutationOptions extends BaseTypeOptions { name?: string; description?: string; deprecationReason?: string; complexity?: Complexity; } export declare function Mutation(): MethodDecorator; export declare function Mutation(name: string): MethodDecorator; export declare function Mutation(typeFunc: ReturnTypeFunc, options?: MutationOptions): MethodDecorator;