diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-19 14:15:50 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-19 14:15:50 +0200 |
commit | a2a50f3de0c428c5a61e6a449191be3c4ded86ac (patch) | |
tree | 5ecf4f5f1f26933b42a606b741963fa5f66c85aa /vendor/github.com/graphql-go/graphql/kitchen-sink.graphql | |
parent | 25fb88d7497b00bbe3dda540efde22ffd3de6e49 (diff) | |
download | git-bug-a2a50f3de0c428c5a61e6a449191be3c4ded86ac.tar.gz |
webui: add a primitive graphql handler
Diffstat (limited to 'vendor/github.com/graphql-go/graphql/kitchen-sink.graphql')
-rw-r--r-- | vendor/github.com/graphql-go/graphql/kitchen-sink.graphql | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/vendor/github.com/graphql-go/graphql/kitchen-sink.graphql b/vendor/github.com/graphql-go/graphql/kitchen-sink.graphql new file mode 100644 index 00000000..d075edfd --- /dev/null +++ b/vendor/github.com/graphql-go/graphql/kitchen-sink.graphql @@ -0,0 +1,52 @@ +# Filename: kitchen-sink.graphql + +query namedQuery($foo: ComplexFooType, $bar: Bar = DefaultBarValue) { + customUser: user(id: [987, 654]) { + id, + ... on User @defer { + field2 { + id , + alias: field1(first:10, after:$foo,) @include(if: $foo) { + id, + ...frag + } + } + } + ... @skip(unless: $foo) { + id + } + ... { + id + } + } +} + +mutation favPost { + fav(post: 123) @defer { + post { + id + } + } +} + +subscription PostFavSubscription($input: StoryLikeSubscribeInput) { + postFavSubscribe(input: $input) { + post { + favers { + count + } + favSentence { + text + } + } + } +} + +fragment frag on Follower { + foo(size: $size, bar: $b, obj: {key: "value"}) +} + +{ + unnamed(truthyVal: true, falseyVal: false), + query +} |