github.com/luciferinlove/gqlgen@v0.17.16-bzc.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 Pet {
    33      id: Int!
    34      friends(limit: Int): [Pet!] @goField(forceResolver: true)
    35  }
    36  
    37  type User {
    38      id: Int!
    39      friends: [User!]! @goField(forceResolver: true)
    40      created: Time!
    41      updated: Time
    42      pets(limit: Int): [Pet!] @goField(forceResolver: true)
    43  }
    44  
    45  type Autobind {
    46      int: Int!
    47      int32: Int!
    48      int64: Int!
    49  
    50      idStr: ID!
    51      idInt: ID!
    52  }
    53  
    54  type ModelMethods {
    55      resolverField: Boolean!
    56      noContext: Boolean!
    57      withContext: Boolean!
    58  }
    59  
    60  type InvalidIdentifier {
    61      id: Int!
    62  }
    63  
    64  type It {
    65      id: ID!
    66  }
    67  
    68  input Changes @goModel(model: "map[string]interface{}") {
    69      a: Int
    70      b: Int
    71  }
    72  
    73  input RecursiveInputSlice {
    74      self: [RecursiveInputSlice!]
    75  }
    76  
    77  input InnerInput {
    78      id: Int!
    79  }
    80  
    81  input OuterInput {
    82      inner: InnerInput!
    83  }
    84  
    85  scalar ThirdParty @goModel(model:"followschema.ThirdParty")
    86  
    87  type OuterObject {
    88      inner: InnerObject!
    89  }
    90  
    91  type InnerObject {
    92      id: Int!
    93  }
    94  
    95  type ForcedResolver {
    96      field: Circle @goField(forceResolver: true)
    97  }
    98  
    99  type EmbeddedPointer @goModel(model:"followschema.EmbeddedPointerModel") {
   100      ID: String
   101      Title: String
   102  }
   103  
   104  scalar UUID
   105  
   106  enum Status {
   107      OK
   108      ERROR
   109  }
   110  
   111  scalar Time