File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -31,18 +31,21 @@ public struct GraphQLDirective: Encodable {
3131 public let description : String
3232 public let locations : [ DirectiveLocation ]
3333 public let args : [ GraphQLArgumentDefinition ]
34+ public let isRepeatable : Bool
3435
3536 public init (
3637 name: String ,
3738 description: String = " " ,
3839 locations: [ DirectiveLocation ] ,
39- args: GraphQLArgumentConfigMap = [ : ]
40+ args: GraphQLArgumentConfigMap = [ : ] ,
41+ isRepeatable: Bool = false
4042 ) throws {
4143 try assertValid ( name: name)
4244 self . name = name
4345 self . description = description
4446 self . locations = locations
4547 self . args = try defineArgumentMap ( args: args)
48+ self . isRepeatable = isRepeatable
4649 }
4750}
4851
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ let __Directive = try! GraphQLObjectType(
8282 fields: [
8383 " name " : GraphQLField ( type: GraphQLNonNull ( GraphQLString) ) ,
8484 " description " : GraphQLField ( type: GraphQLString) ,
85+ " isRepeatable " : GraphQLField ( type: GraphQLNonNull ( GraphQLBoolean) ) ,
8586 " locations " : GraphQLField ( type: GraphQLNonNull ( GraphQLList ( GraphQLNonNull ( __DirectiveLocation) ) ) ) ,
8687 " args " : GraphQLField (
8788 type: GraphQLNonNull ( GraphQLList ( GraphQLNonNull ( __InputValue) ) ) ,
You can’t perform that action at this time.
0 commit comments