2015-07-15 20:05:46 +03:00
|
|
|
# Copyright (c) 2015, Facebook, Inc.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This source code is licensed under the BSD-style license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
# of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
|
|
|
|
query queryName($foo: ComplexType, $site: Site = MOBILE) {
|
|
|
|
whoever123is: node(id: [123, 456]) {
|
|
|
|
id ,
|
|
|
|
... on User @defer {
|
|
|
|
field2 {
|
|
|
|
id ,
|
2015-08-16 23:53:11 +03:00
|
|
|
alias: field1(first:10, after:$foo,) @include(if: $foo) {
|
2015-07-15 20:05:46 +03:00
|
|
|
id,
|
|
|
|
...frag
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-04-23 21:24:41 +03:00
|
|
|
... @skip(unless: $foo) {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
... {
|
|
|
|
id
|
|
|
|
}
|
2015-07-15 20:05:46 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation likeStory {
|
|
|
|
like(story: 123) @defer {
|
|
|
|
story {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-23 21:24:41 +03:00
|
|
|
subscription StoryLikeSubscription($input: StoryLikeSubscribeInput) {
|
|
|
|
storyLikeSubscribe(input: $input) {
|
|
|
|
story {
|
|
|
|
likers {
|
|
|
|
count
|
|
|
|
}
|
|
|
|
likeSentence {
|
|
|
|
text
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-15 20:05:46 +03:00
|
|
|
fragment frag on Friend {
|
2018-02-08 16:58:08 +03:00
|
|
|
foo(size: $size, bar: $b, obj: {key: "value", block: """
|
|
|
|
|
|
|
|
block string uses \"""
|
|
|
|
|
|
|
|
"""})
|
2015-07-15 20:05:46 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
{
|
2016-11-18 19:59:28 +03:00
|
|
|
unnamed(truthy: true, falsey: false, nullish: null),
|
2015-07-15 20:05:46 +03:00
|
|
|
query
|
|
|
|
}
|