Mirror: The spec-compliant minimum of client-side GraphQL.
1// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
3exports[`print > prints the kitchen sink document like graphql.js does 1`] = `
4"query queryName($foo: ComplexType, $site: Site = MOBILE) @onQuery {
5 whoever123is: node(id: [123, 456]) {
6 id
7 ... on User @onInlineFragment {
8 field2 {
9 id
10 alias: field1(first: 10, after: $foo) @include(if: $foo) {
11 id
12 ...frag @onFragmentSpread
13 }
14 }
15 }
16 ... @skip(unless: $foo) {
17 id
18 }
19 ... {
20 id
21 }
22 }
23}
24
25mutation likeStory @onMutation {
26 like(story: 123) @onField {
27 story {
28 id @onField
29 }
30 }
31}
32
33subscription StoryLikeSubscription($input: StoryLikeSubscribeInput) @onSubscription {
34 storyLikeSubscribe(input: $input) {
35 story {
36 likers {
37 count
38 }
39 likeSentence {
40 text
41 }
42 }
43 }
44}
45
46fragment frag on Friend @onFragmentDefinition {
47 foo(
48 size: $site
49 bar: 12
50 obj: {key: \\"value\\", block: \\"\\"\\"
51 block string uses \\\\\\"\\"\\"
52 \\"\\"\\"}
53 )
54}
55
56query teeny {
57 unnamed(truthy: true, falsey: false, nullish: null)
58 query
59}
60
61query tiny {
62 __typename
63}"
64`;