kitchen-sink.graphql

 1# Filename: kitchen-sink.graphql
 2
 3query namedQuery($foo: ComplexFooType, $bar: Bar = DefaultBarValue) {
 4  customUser: user(id: [987, 654]) {
 5    id,
 6    ... on User @defer {
 7      field2 {
 8        id ,
 9        alias: field1(first:10, after:$foo,) @include(if: $foo) {
10          id,
11          ...frag
12        }
13      }
14    }
15    ... @skip(unless: $foo) {
16      id
17    }
18    ... {
19      id
20    }
21  }
22}
23
24mutation favPost {
25  fav(post: 123) @defer {
26    post {
27      id
28    }
29  }
30}
31
32subscription PostFavSubscription($input: StoryLikeSubscribeInput) {
33  postFavSubscribe(input: $input) {
34    post {
35      favers {
36        count
37      }
38      favSentence {
39        text
40      }
41    }
42  }
43}
44
45fragment frag on Follower {
46  foo(size: $size, bar: $b, obj: {key: "value"})
47}
48
49{
50  unnamed(truthyVal: true, falseyVal: false),
51  query
52}