Debian Codegraph @

t/kitchen-sink.graphql

raw
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
6 query queryName($foo: ComplexType, $site: Site = MOBILE) @onQuery {
7 whoever123is: node(id: [123, 456]) {
8 id ,
9 ... on User @onInlineFragment {
10 field2 {
11 id ,
12 alias: field1(first:10, after:$foo,) @include(if: $foo) {
13 id,
14 ...frag @onFragmentSpread
15 }
16 }
17 }
18 ... @skip(unless: $foo) {
19 id
20 }
21 ... {
22 id
23 }
24 }
25 }
26
27 mutation likeStory @onMutation {
28 like(story: 123) @onField {
29 story {
30 id @onField
31 }
32 }
33 }
34
35 subscription StoryLikeSubscription(
36 $input: StoryLikeSubscribeInput
37 ) @onSubscription {
38 storyLikeSubscribe(input: $input) {
39 story {
40 likers {
41 count
42 }
43 likeSentence {
44 text
45 }
46 }
47 }
48 }
49
50 fragment frag on Friend @onFragmentDefinition {
51 foo(size: $size, bar: $b, obj: {key: "value", block: """
52
53 block string uses \"""
54
55 """})
56 }
57
58 {
59 unnamed(truthy: true, falsey: false, nullish: null),
60 query
61 }
62
63 query { __typename }