49462cf05f
This commit moves the single anonymous and duplicated operation name validation rules into the parser, allowing for a nicer format to be exposed by it. It also adds better error messages to the parser.
51 lines
811 B
GraphQL
51 lines
811 B
GraphQL
query queryName($foo: ComplexType, $site: Site = MOBILE) {
|
|
whoever123is: node(id: [123, 456]) {
|
|
id
|
|
... on User @defer {
|
|
field2 {
|
|
id
|
|
alias: field1(first: 10, after: $foo) @include(if: $foo) {
|
|
id
|
|
...frag
|
|
}
|
|
}
|
|
}
|
|
... @skip(unless: $foo) {
|
|
id
|
|
}
|
|
... {
|
|
id
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation likeStory {
|
|
like(story: 123) @defer {
|
|
story {
|
|
id
|
|
}
|
|
}
|
|
}
|
|
|
|
subscription StoryLikeSubscription($input: StoryLikeSubscribeInput) {
|
|
storyLikeSubscribe(input: $input) {
|
|
story {
|
|
likers {
|
|
count
|
|
}
|
|
likeSentence {
|
|
text
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fragment frag on Friend {
|
|
foo(size: $size, bar: $b, obj: {key: "value"})
|
|
}
|
|
|
|
query otherQuery {
|
|
unnamed(truthy: true, falsey: false, nullish: null)
|
|
query
|
|
}
|