graphql-composer
Version:
Create your GraphQL API using composition!
11 lines (10 loc) • 561 B
TypeScript
import { GraphQLDirective, DirectiveNode } from "graphql";
import { GQLElement } from "../../classes/GQLElement";
export declare class Directive<ExtensionType = any> extends GQLElement<GraphQLDirective, any, ExtensionType> {
protected _args: [string, string | number | boolean | object][];
get args(): [string, string | number | boolean | object][];
get definitionNode(): DirectiveNode;
protected constructor(name: string);
static create(name: string): Directive;
addArg(name: string, value: string | number | boolean | object): this;
}