github.com/99designs/gqlgen@v0.17.45/codegen/testserver/singlefile/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      omittable: Boolean
     9  ) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
    10  directive @defer(
    11      if: Boolean = true
    12      label: String
    13  ) on FRAGMENT_SPREAD | INLINE_FRAGMENT
    14  
    15  type Query {
    16      invalidIdentifier: InvalidIdentifier
    17      collision: It
    18      mapInput(input: Changes): Boolean
    19      recursive(input: RecursiveInputSlice): Boolean
    20      nestedInputs(input: [[OuterInput]] = [[{ inner: { id: 1 } }]]): Boolean
    21      nestedOutputs: [[OuterObject]]
    22      modelMethods: ModelMethods
    23      user(id: Int!): User!
    24      nullableArg(arg: Int = 123): String
    25      inputSlice(arg: [String!]!): Boolean!
    26      inputNullableSlice(arg: [String!]): Boolean!
    27      inputOmittable(arg: OmittableInput!): String!
    28      shapeUnion: ShapeUnion!
    29      autobind: Autobind
    30      deprecatedField: String! @deprecated(reason: "test deprecated directive")
    31  }
    32  
    33  type Subscription {
    34      updated: String!
    35      initPayload: String!
    36  }
    37  
    38  type Pet {
    39      id: Int!
    40      friends(limit: Int): [Pet!] @goField(forceResolver: true)
    41  }
    42  
    43  type User {
    44      id: Int!
    45      friends: [User!]! @goField(forceResolver: true)
    46      created: Time!
    47      updated: Time
    48      pets(limit: Int): [Pet!] @goField(forceResolver: true)
    49  }
    50  
    51  type Autobind {
    52      int: Int!
    53      int32: Int!
    54      int64: Int!
    55  
    56      idStr: ID!
    57      idInt: ID!
    58  }
    59  
    60  type ModelMethods {
    61      resolverField: Boolean!
    62      noContext: Boolean!
    63      withContext: Boolean!
    64  }
    65  
    66  type InvalidIdentifier {
    67      id: Int!
    68  }
    69  
    70  type It {
    71      id: ID!
    72  }
    73  
    74  input Changes @goModel(model: "map[string]interface{}") {
    75      a: Int
    76      b: Int
    77  }
    78  
    79  input RecursiveInputSlice {
    80      self: [RecursiveInputSlice!]
    81  }
    82  
    83  input InnerInput {
    84      id: Int!
    85  }
    86  
    87  input OuterInput {
    88      inner: InnerInput!
    89  }
    90  
    91  input OmittableInput {
    92      id: ID @goField(omittable: true)
    93      bool: Boolean @goField(omittable: true)
    94      str: String @goField(omittable: true)
    95      int: Int @goField(omittable: true)
    96      time: Time @goField(omittable: true)
    97      enum: Status @goField(omittable: true)
    98      scalar: ThirdParty @goField(omittable: true)
    99      object: OuterInput @goField(omittable: true)
   100  }
   101  
   102  scalar ThirdParty @goModel(model:"singlefile.ThirdParty")
   103  
   104  type OuterObject {
   105      inner: InnerObject!
   106  }
   107  
   108  type InnerObject {
   109      id: Int!
   110  }
   111  
   112  type ForcedResolver {
   113      field: Circle @goField(forceResolver: true)
   114  }
   115  
   116  type EmbeddedPointer @goModel(model:"singlefile.EmbeddedPointerModel") {
   117      ID: String
   118      Title: String
   119  }
   120  
   121  scalar UUID
   122  
   123  enum Status {
   124      OK
   125      ERROR
   126  }
   127  
   128  scalar Time