Add isRepeatable to GraphQLDirective (#36358)

https://github.com/graphql/graphql-js/commit/2c7224c32bf35ce97201b181d7b445cf8e49a585
This commit is contained in:
Pavel Lang
2019-06-24 12:41:36 -07:00
committed by Daniel Rosenwasser
parent 3a3bb26b11
commit 40ca2b4b91
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -491,6 +491,7 @@ export interface DirectiveDefinitionNode {
readonly description?: StringValueNode;
readonly name: NameNode;
readonly arguments?: ReadonlyArray<InputValueDefinitionNode>;
readonly repeatable: boolean;
readonly locations: ReadonlyArray<NameNode>;
}
+2
View File
@@ -16,6 +16,7 @@ export class GraphQLDirective {
name: string;
description: Maybe<string>;
locations: DirectiveLocationEnum[];
isRepeatable: boolean;
args: GraphQLArgument[];
astNode: Maybe<DirectiveDefinitionNode>;
@@ -31,6 +32,7 @@ export interface GraphQLDirectiveConfig {
description?: Maybe<string>;
locations: DirectiveLocationEnum[];
args?: Maybe<GraphQLFieldConfigArgumentMap>;
isRepeatable?: Maybe<boolean>;
astNode?: Maybe<DirectiveDefinitionNode>;
}