Skip to content

Commit

Permalink
Add comment for @defer directive need in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari committed Mar 19, 2024
1 parent ffef781 commit 93bd99d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ class IRRootFieldBuilderTests: XCTestCase {
subject = result.rootField
}

// This function will only be needed until @defer is merged into the GraphQL spec and is
// considered a first-class directive in graphql-js. Right now it is a valid directive but must
// be 'enabled' through explicit declaration in the schema.
fileprivate func addDeferDirective() {
guard let schemaSDL = self.schemaSDL else { return }

Expand Down

0 comments on commit 93bd99d

Please sign in to comment.