File: vars.graphql

package info (click to toggle)
golang-github-vektah-gqlparser 2.5.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,748 kB
  • sloc: javascript: 164; sh: 46; makefile: 10
file content (38 lines) | stat: -rw-r--r-- 808 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
type Query {
    optionalIntArg(i: Int): Boolean!
    intArg(i: Int!): Boolean!
    stringArg(i: String): Boolean!
    boolArg(i: Boolean!): Boolean!
    floatArg(i: Float!): Boolean!
    idArg(i: ID!): Boolean!
    scalarArg(i: Custom!): Boolean!
    structArg(i: InputType!): Boolean!
    defaultStructArg(i: InputType! = {name: "foo"}): Boolean!
    arrayArg(i: [InputType!]): Boolean!
    intArrayArg(i: [Int]): Boolean!
    stringArrayArg(i: [String]): Boolean!
    boolArrayArg(i: [Boolean]): Boolean!
    typeArrayArg(i: [CustomType]): Boolean!
}

input InputType {
    name: String!
    nullName: String
    nullEmbedded: Embedded
    enum: Enum
    defaultName: String! = "defaultFoo"
}

input Embedded {
    name: String!
}

input CustomType {
    and: [Int!]
}

enum Enum {
    A
}

scalar Custom