summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/rouge-4.7.0/lib/rouge/demos/graphql
blob: 2fe9ec174d6df5df6e4adff4b521ade2810d84d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
query myQuery($variable: Boolean) {
  # Queries can have comments!
  friends(ids: ["a1", "a2"]) {
    id
    name

    ...someFields

    ... @include(if: $variable) {
      foo
    }

    ... @skip(if: true) {
      bar
    }
  }
}