-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump GraphQL Java and add max query depth option * Add test for maximum query depth * Add another test
- Loading branch information
Showing
14 changed files
with
374 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
lib/src/main/java/graphql/nadel/NadelExecutionEngineFactory.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
test/src/test/kotlin/graphql/nadel/tests/hooks/`large-query-but-not-deep`.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package graphql.nadel.tests.hooks | ||
|
||
import graphql.nadel.Nadel | ||
import graphql.nadel.tests.EngineTestHook | ||
import graphql.nadel.tests.UseHook | ||
|
||
@UseHook | ||
class `large-query-but-not-deep` : EngineTestHook { | ||
override fun makeNadel(builder: Nadel.Builder): Nadel.Builder { | ||
return super.makeNadel(builder) | ||
.maxQueryDepth(10) | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
test/src/test/kotlin/graphql/nadel/tests/hooks/operation-depth-limit.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package graphql.nadel.tests.hooks | ||
|
||
import graphql.nadel.Nadel | ||
import graphql.nadel.tests.EngineTestHook | ||
import graphql.nadel.tests.UseHook | ||
|
||
@UseHook | ||
class `operation-depth-limit` : EngineTestHook { | ||
override fun makeNadel(builder: Nadel.Builder): Nadel.Builder { | ||
return super.makeNadel(builder) | ||
.maxQueryDepth(10) | ||
} | ||
} |
Oops, something went wrong.