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 {
31
31
public let description : String
32
32
public let locations : [ DirectiveLocation ]
33
33
public let args : [ GraphQLArgumentDefinition ]
34
+ public let isRepeatable : Bool
34
35
35
36
public init (
36
37
name: String ,
37
38
description: String = " " ,
38
39
locations: [ DirectiveLocation ] ,
39
- args: GraphQLArgumentConfigMap = [ : ]
40
+ args: GraphQLArgumentConfigMap = [ : ] ,
41
+ isRepeatable: Bool = false
40
42
) throws {
41
43
try assertValid ( name: name)
42
44
self . name = name
43
45
self . description = description
44
46
self . locations = locations
45
47
self . args = try defineArgumentMap ( args: args)
48
+ self . isRepeatable = isRepeatable
46
49
}
47
50
}
48
51
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ let __Directive = try! GraphQLObjectType(
82
82
fields: [
83
83
" name " : GraphQLField ( type: GraphQLNonNull ( GraphQLString) ) ,
84
84
" description " : GraphQLField ( type: GraphQLString) ,
85
+ " isRepeatable " : GraphQLField ( type: GraphQLNonNull ( GraphQLBoolean) ) ,
85
86
" locations " : GraphQLField ( type: GraphQLNonNull ( GraphQLList ( GraphQLNonNull ( __DirectiveLocation) ) ) ) ,
86
87
" args " : GraphQLField (
87
88
type: GraphQLNonNull ( GraphQLList ( GraphQLNonNull ( __InputValue) ) ) ,
You can’t perform that action at this time.
0 commit comments