-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add @composeDirective to sangria implementation (#555)
Co-authored-by: ogotte <[email protected]>
- Loading branch information
1 parent
f646cc6
commit dbdf379
Showing
4 changed files
with
22 additions
and
2 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
10 changes: 10 additions & 0 deletions
10
implementations/sangria/src/main/scala/graphql/CustomDirectiveSpec.scala
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,10 @@ | ||
package graphql | ||
|
||
import sangria.ast | ||
import sangria.schema | ||
|
||
object CustomDirectiveSpec { | ||
val CustomDirective: ast.Directive = ast.Directive("custom") | ||
val CustomDirectiveDefinition: schema.Directive = | ||
schema.Directive("custom", locations = Set(schema.DirectiveLocation.Object)) | ||
} |
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