52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`directives.graphql 1`] = `
|
|
query MyQuery @directive(
|
|
arg: 5
|
|
) {
|
|
field
|
|
@skip(if: true) @nope
|
|
otherField
|
|
...fragmentSpread, @include(if: ["this isn't even a boolean", "wow, that's really odd",,,,,])
|
|
}
|
|
|
|
fragment YouCanHaveDirectivesHereToo on SomeType @yesReally(what: "yes") {
|
|
fields
|
|
... on AType @what(sup: "yo") @otherDirective { goodbye}
|
|
... @notEvenATypeHere(args: [1, 2, 3]) {
|
|
hello
|
|
}
|
|
|
|
thisFieldHasALotOfDirectives @thisIsthefirst @thisIsTheSecond @thisIsTheThird @thisIstheFourthWillBeTooLongForSure (and: "it has arguments as well")
|
|
}
|
|
|
|
query QueryWVars($x: String) @directive { hey }
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
query MyQuery @directive(arg: 5) {
|
|
field @skip(if: true) @nope
|
|
otherField
|
|
...fragmentSpread
|
|
@include(if: ["this isn't even a boolean", "wow, that's really odd"])
|
|
}
|
|
|
|
fragment YouCanHaveDirectivesHereToo on SomeType @yesReally(what: "yes") {
|
|
fields
|
|
... on AType @what(sup: "yo") @otherDirective {
|
|
goodbye
|
|
}
|
|
... @notEvenATypeHere(args: [1, 2, 3]) {
|
|
hello
|
|
}
|
|
thisFieldHasALotOfDirectives
|
|
@thisIsthefirst
|
|
@thisIsTheSecond
|
|
@thisIsTheThird
|
|
@thisIstheFourthWillBeTooLongForSure(and: "it has arguments as well")
|
|
}
|
|
|
|
query QueryWVars($x: String) @directive {
|
|
hey
|
|
}
|
|
|
|
`;
|