File: graphql

package info (click to toggle)
ruby-rouge 4.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,844 kB
  • sloc: ruby: 38,489; sed: 2,071; perl: 152; makefile: 8
file content (17 lines) | stat: -rw-r--r-- 233 bytes parent folder | download | duplicates (5)
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
    }
  }
}