directives.graphql 586 B

123456789101112131415161718192021
  1. query MyQuery @directive(
  2. arg: 5
  3. ) {
  4. field
  5. @skip(if: true) @nope
  6. otherField
  7. ...fragmentSpread, @include(if: ["this isn't even a boolean", "wow, that's really odd",,,,,])
  8. }
  9. fragment YouCanHaveDirectivesHereToo on SomeType @yesReally(what: "yes") {
  10. fields
  11. ... on AType @what(sup: "yo") @otherDirective { goodbye}
  12. ... @notEvenATypeHere(args: [1, 2, 3]) {
  13. hello
  14. }
  15. thisFieldHasALotOfDirectives @thisIsthefirst @thisIsTheSecond @thisIsTheThird @thisIstheFourthWillBeTooLongForSure (and: "it has arguments as well")
  16. }
  17. query QueryWVars($x: String) @directive { hey }