github.com/HaswinVidanage/gqlgen@v0.8.1-0.20220609041233-69528c1bf712/codegen/testserver/schema.graphql (about)

     1  type Query {
     2      invalidIdentifier: InvalidIdentifier
     3      collision: It
     4      mapInput(input: Changes): Boolean
     5      recursive(input: RecursiveInputSlice): Boolean
     6      nestedInputs(input: [[OuterInput]] = [[{inner: {id: 1}}]]): Boolean
     7      nestedOutputs: [[OuterObject]]
     8      shapes: [Shape]
     9      errorBubble: Error
    10      modelMethods: ModelMethods
    11      valid: String!
    12      user(id: Int!): User!
    13      nullableArg(arg: Int = 123): String
    14      directiveArg(arg: String! @length(min:1, max: 255, message: "invalid length")): String
    15      directiveNullableArg(arg: Int @range(min:0), arg2: Int @range): String
    16      directiveInputNullable(arg: InputDirectives): String
    17      directiveInput(arg: InputDirectives!): String
    18      inputSlice(arg: [String!]!): Boolean!
    19      shapeUnion: ShapeUnion!
    20      autobind: Autobind
    21  }
    22  
    23  type Subscription {
    24      updated: String!
    25      initPayload: String!
    26  }
    27  
    28  type User {
    29      id: Int!
    30      friends: [User!]!
    31      created: Time!
    32      updated: Time
    33  }
    34  
    35  type Autobind {
    36      int: Int!
    37      int32: Int!
    38      int64: Int!
    39  
    40      idStr: ID!
    41      idInt: ID!
    42  }
    43  
    44  type Error {
    45      id: ID!
    46      errorOnNonRequiredField: String
    47      errorOnRequiredField: String!
    48      nilOnRequiredField: String!
    49  }
    50  
    51  type ModelMethods {
    52      resolverField: Boolean!
    53      noContext: Boolean!
    54      withContext: Boolean!
    55  }
    56  
    57  type InvalidIdentifier {
    58      id: Int!
    59  }
    60  
    61  type It {
    62      id: ID!
    63  }
    64  
    65  input Changes {
    66      a: Int
    67      b: Int
    68  }
    69  
    70  input RecursiveInputSlice {
    71      self: [RecursiveInputSlice!]
    72  }
    73  
    74  input InnerInput {
    75      id:Int!
    76  }
    77  
    78  input OuterInput {
    79      inner: InnerInput!
    80  }
    81  
    82  scalar ThirdParty
    83  
    84  input InputDirectives {
    85      text: String! @length(min: 0, max: 7, message: "not valid")
    86      inner: InnerDirectives!
    87      innerNullable: InnerDirectives
    88      thirdParty: ThirdParty @length(min: 0, max: 7, message: "not valid")
    89  }
    90  
    91  input InnerDirectives {
    92      message: String! @length(min: 1, message: "not valid")
    93  }
    94  
    95  type OuterObject {
    96      inner: InnerObject!
    97  }
    98  
    99  type InnerObject {
   100      id: Int!
   101  }
   102  
   103  interface Shape {
   104      area: Float
   105  }
   106  type Circle implements Shape {
   107      radius: Float
   108      area: Float
   109  }
   110  type Rectangle implements Shape {
   111      length: Float
   112      width: Float
   113      area: Float
   114  }
   115  union ShapeUnion = Circle | Rectangle
   116  
   117  type ForcedResolver {
   118      field: Circle
   119  }
   120  
   121  type EmbeddedPointer {
   122      ID: String
   123      Title: String
   124  }
   125  
   126  directive @length(min: Int!, max: Int) on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
   127  directive @range(min: Int = 0, max: Int) on ARGUMENT_DEFINITION
   128  
   129  enum Status {
   130      OK
   131      ERROR
   132  }
   133  
   134  scalar Time