21 lines
586 B
GraphQL
21 lines
586 B
GraphQL
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 }
|