Skip to content

Instantly share code, notes, and snippets.

@sevki
Last active August 29, 2015 14:24
Show Gist options
  • Select an option

  • Save sevki/e0e03a59894e5159c183 to your computer and use it in GitHub Desktop.

Select an option

Save sevki/e0e03a59894e5159c183 to your computer and use it in GitHub Desktop.
complexquery
# 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) @remote(addr: "https://facebook.com/graphql"), @ginclude(please: true), @bugerking {
whoever123is: node(id: [123, 456], name: "Cedi Osman") {
id ,
... frag @bullshit(something: NO),
... on User @defer(if: true) {
field2 {
id ,
# this is interesting
poop: somepoo(first:10, after:$foo, cooco: "ASDASD",) @include(if: $foo) {
id,
...frag
},
cropProfilePic(x: 0.005, y: 0xbeda12) {
url
}
}
}
}
}
mutation likeStory {
like(story: 123) @defer {
story {
id
}
}
}
fragment frag on Friend {
foo(size: $size, bar: $b, obj: {key: "value"})
}
{
unnamed(truthy: true, falsey: false),
query
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment