UNPKG

type-graphql

Version:

Create GraphQL schema and resolvers with TypeScript, using classes and decorators!

20 lines (19 loc) 477 B
export interface DirectiveMetadata { nameOrDefinition: string; args: Record<string, any>; } export interface DirectiveClassMetadata { target: Function; directive: DirectiveMetadata; } export interface DirectiveFieldMetadata { target: Function; fieldName: string; directive: DirectiveMetadata; } export interface DirectiveArgumentMetadata { target: Function; fieldName: string; parameterIndex: number; directive: DirectiveMetadata; }