kitchen_sink.graphql 1018 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Copyright (c) 2015-present, Facebook, Inc.
  2. #
  3. # This source code is licensed under the MIT license found in the
  4. # LICENSE file in the root directory of this source tree.
  5. query queryName($foo: ComplexType, $site: Site = MOBILE) {
  6. whoever123is: node(id: [123, 456]) {
  7. id ,
  8. ... on User @defer {
  9. field2 {
  10. id ,
  11. alias: field1(first:10, after:$foo,) @include(if: $foo) {
  12. id,
  13. ...frag
  14. }
  15. }
  16. }
  17. ... @skip(unless: $foo) {
  18. id
  19. }
  20. ... {
  21. id
  22. }
  23. }
  24. }
  25. mutation likeStory {
  26. like(story: 123) @defer {
  27. story {
  28. id
  29. }
  30. }
  31. }
  32. subscription StoryLikeSubscription($input: StoryLikeSubscribeInput) {
  33. storyLikeSubscribe(input: $input) {
  34. story {
  35. likers {
  36. count
  37. }
  38. likeSentence {
  39. text
  40. }
  41. }
  42. }
  43. }
  44. fragment frag on Friend {
  45. foo(size: $size, bar: $b, obj: {key: "value", block: """
  46. block string uses \"""
  47. """})
  48. }
  49. {
  50. unnamed(truthy: true, falsey: false, nullish: null),
  51. query
  52. }