We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9922b2d commit f62de68Copy full SHA for f62de68
Tests/GraphQLTests/ValidationTests/ExampleSchema.swift
@@ -587,12 +587,24 @@ let ValidationExampleQueryRoot = try! GraphQLObjectType(
587
]
588
)
589
590
+let ValidationFieldDirective = try! GraphQLDirective(
591
+ name: "onField",
592
+ locations: [.field]
593
+)
594
+
595
let ValidationExampleSchema = try! GraphQLSchema(
596
query: ValidationExampleQueryRoot,
597
types: [
598
ValidationExampleCat,
599
ValidationExampleDog,
600
ValidationExampleHuman,
601
ValidationExampleAlien,
- ]
602
+ ],
603
+ directives: {
604
+ var directives = specifiedDirectives
605
+ directives.append(contentsOf: [
606
+ ValidationFieldDirective,
607
+ ])
608
+ return directives
609
+ }()
610
0 commit comments