github.com/operandinc/gqlgen@v0.16.1/codegen/testserver/followschema/schema.graphql (about)

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