Mirror: The spec-compliant minimum of client-side GraphQL.
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 6query 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 27mutation likeStory @onMutation { 28 like(story: 123) @onField { 29 story { 30 id @onField 31 } 32 } 33} 34 35subscription StoryLikeSubscription($input: StoryLikeSubscribeInput) 36@onSubscription { 37 storyLikeSubscribe(input: $input) { 38 story { 39 likers { 40 count 41 } 42 likeSentence { 43 text 44 } 45 } 46 } 47} 48 49fragment frag on Friend @onFragmentDefinition { 50 foo( 51 size: $site 52 bar: 12 53 obj: { 54 key: "value" 55 block: """ 56 block string uses \""" 57 """ 58 } 59 ) 60} 61 62query teeny { 63 unnamed(truthy: true, falsey: false, nullish: null) 64 query 65} 66 67query tiny { 68 __typename 69}