Commit 58a7894 1 parent dc66300 commit 58a7894 Copy full SHA for 58a7894
File tree 1 file changed +13
-3
lines changed
Tests/ApolloCodegenTests/CodeGeneration/Templates/SelectionSet
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -1731,7 +1731,7 @@ class SelectionSetTemplateTests: XCTestCase {
1731
1731
id: String!
1732
1732
species: String!
1733
1733
}
1734
- """
1734
+ """ . prefixedWithDeferDirective ( )
1735
1735
1736
1736
document = """
1737
1737
query TestOperation {
@@ -1786,7 +1786,7 @@ class SelectionSetTemplateTests: XCTestCase {
1786
1786
id: String!
1787
1787
species: String!
1788
1788
}
1789
- """
1789
+ """ . prefixedWithDeferDirective ( )
1790
1790
1791
1791
document = """
1792
1792
query TestOperation {
@@ -5652,7 +5652,7 @@ class SelectionSetTemplateTests: XCTestCase {
5652
5652
id: String!
5653
5653
species: String!
5654
5654
}
5655
- """
5655
+ """ . prefixedWithDeferDirective ( )
5656
5656
5657
5657
document = """
5658
5658
query TestOperation {
@@ -8421,3 +8421,13 @@ class SelectionSetTemplateTests: XCTestCase {
8421
8421
}
8422
8422
8423
8423
}
8424
+
8425
+ extension String {
8426
+ fileprivate func prefixedWithDeferDirective( ) -> String {
8427
+ return """
8428
+ directive @defer(label: String, if: Boolean! = true) on FRAGMENT_SPREAD | INLINE_FRAGMENT
8429
+
8430
+ \( self )
8431
+ """
8432
+ }
8433
+ }
You can’t perform that action at this time.
0 commit comments