This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/examplefiles/graphql/ex07_fragments2.graphql
mazza 2401866e5a
Add support for GraphQL (#2428)
Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
2023-05-14 11:29:03 +02:00

20 lines
340 B
GraphQL

query HeroComparison($first: Int = 3) {
leftComparison: hero(episode: EMPIRE) {
...comparisonFields
}
rightComparison: hero(episode: JEDI) {
...comparisonFields
}
}
fragment comparisonFields on Character {
name
friendsConnection(first: $first) {
totalCount
edges {
node {
name
}
}
}
}