diff options
| author | Danny Navarro <j@dannynavarro.net> | 2015-09-14 17:01:14 +0200 |
|---|---|---|
| committer | Danny Navarro <j@dannynavarro.net> | 2015-09-14 17:01:14 +0200 |
| commit | 8d81f43b611bd9624ab1ebfdb8c0cd9c2e4d9539 (patch) | |
| tree | 5b81e9f0c5a19a3b89b4b4c56ae1cc2faafd8069 /tests/data/kitchen-sink.graphql | |
| parent | b4b83883924a0e7c8eacd63f26b098fe31c9e0be (diff) | |
| download | graphql-8d81f43b611bd9624ab1ebfdb8c0cd9c2e4d9539.tar.gz | |
Add golden test for kitchen-sink.graphql
Diffstat (limited to 'tests/data/kitchen-sink.graphql')
| -rw-r--r-- | tests/data/kitchen-sink.graphql | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/data/kitchen-sink.graphql b/tests/data/kitchen-sink.graphql new file mode 100644 index 0000000..46fd10e --- /dev/null +++ b/tests/data/kitchen-sink.graphql @@ -0,0 +1,38 @@ +# 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 , # Inline test comment + ... on User @defer { + field2 { + id , + alias: field1(first:10, after:$foo,) @include(if: $foo) { + id, + ...frag + } + } + } + } +} + +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 +} |
