UNPKG

@nestjs/graphql

Version:

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

14 lines (13 loc) 597 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 QueryOptions extends BaseTypeOptions { name?: string; description?: string; deprecationReason?: string; complexity?: Complexity; } export declare function Query(): MethodDecorator; export declare function Query(name: string): MethodDecorator; export declare function Query(typeFunc: ReturnTypeFunc, options?: QueryOptions): MethodDecorator;