github.com/maeglindeveloper/gqlgen@v0.13.1-0.20210413081235-57808b12a0a0/codegen/testserver/schema.graphql (about)

     1  directive @goModel(model: String, models: [String!]) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
     2  directive @goField(forceResolver: Boolean, name: String) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
     3  
     4  type Query {
     5      invalidIdentifier: InvalidIdentifier
     6      collision: It
     7      mapInput(input: Changes): Boolean
     8      recursive(input: RecursiveInputSlice): Boolean
     9      nestedInputs(input: [[OuterInput]] = [[{inner: {id: 1}}]]): Boolean
    10      nestedOutputs: [[OuterObject]]
    11      modelMethods: ModelMethods
    12      user(id: Int!): User!
    13      nullableArg(arg: Int = 123): String
    14      inputSlice(arg: [String!]!): Boolean!
    15      inputNullableSlice(arg: [String!]): Boolean!
    16      shapeUnion: ShapeUnion!
    17      autobind: Autobind
    18      deprecatedField: String! @deprecated(reason: "test deprecated directive")
    19  }
    20  
    21  type Subscription {
    22      updated: String!
    23      initPayload: String!
    24  }
    25  
    26  type User {
    27      id: Int!
    28      friends: [User!]! @goField(forceResolver: true)
    29      created: Time!
    30      updated: Time
    31  }
    32  
    33  type Autobind {
    34      int: Int!
    35      int32: Int!
    36      int64: Int!
    37  
    38      idStr: ID!
    39      idInt: ID!
    40  }
    41  
    42  type ModelMethods {
    43      resolverField: Boolean!
    44      noContext: Boolean!
    45      withContext: Boolean!
    46  }
    47  
    48  type InvalidIdentifier {
    49      id: Int!
    50  }
    51  
    52  type It {
    53      id: ID!
    54  }
    55  
    56  input Changes @goModel(model:"map[string]interface{}") {
    57      a: Int
    58      b: Int
    59  }
    60  
    61  input RecursiveInputSlice {
    62      self: [RecursiveInputSlice!]
    63  }
    64  
    65  input InnerInput {
    66      id:Int!
    67  }
    68  
    69  input OuterInput {
    70      inner: InnerInput!
    71  }
    72  
    73  scalar ThirdParty @goModel(model:"testserver.ThirdParty")
    74  
    75  type OuterObject {
    76      inner: InnerObject!
    77  }
    78  
    79  type InnerObject {
    80      id: Int!
    81  }
    82  
    83  type ForcedResolver {
    84      field: Circle @goField(forceResolver: true)
    85  }
    86  
    87  type EmbeddedPointer @goModel(model:"testserver.EmbeddedPointerModel") {
    88      ID: String
    89      Title: String
    90  }
    91  
    92  scalar UUID
    93  
    94  enum Status {
    95      OK
    96      ERROR
    97  }
    98  
    99  scalar Time