| 1 |
"Query description" |
| 2 |
query queryName( |
| 3 |
"Very complex variable" |
| 4 |
$foo: ComplexType, |
| 5 |
$site: Site = MOBILE |
| 6 |
) @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 @onVariableDefinition |
| 37 |
) @onSubscription { |
| 38 |
storyLikeSubscribe(input: $input) { |
| 39 |
story { |
| 40 |
likers { |
| 41 |
count |
| 42 |
} |
| 43 |
likeSentence { |
| 44 |
text |
| 45 |
} |
| 46 |
} |
| 47 |
} |
| 48 |
} |
| 49 |
|
| 50 |
""" |
| 51 |
Fragment description |
| 52 |
""" |
| 53 |
fragment frag on Friend @onFragmentDefinition { |
| 54 |
foo(size: $size, bar: $b, obj: {key: "value", block: """ |
| 55 |
|
| 56 |
block string uses \""" |
| 57 |
|
| 58 |
"""}) |
| 59 |
} |
| 60 |
|
| 61 |
{ |
| 62 |
unnamed(truthy: true, falsy: false, nullish: null), |
| 63 |
query |
| 64 |
} |
| 65 |
|
| 66 |
query { __typename } |