git.sr.ht/~sircmpwn/gqlgen@v0.0.0-20200522192042-c84d29a1c940/codegen/testserver/directive.graphql (about)

     1  directive @length(min: Int!, max: Int, message: String) on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | FIELD_DEFINITION
     2  directive @range(min: Int = 0, max: Int) on ARGUMENT_DEFINITION
     3  directive @custom on ARGUMENT_DEFINITION
     4  directive @logged(id: UUID!) on FIELD
     5  directive @toNull on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | FIELD_DEFINITION
     6  directive @directive1 on FIELD_DEFINITION
     7  directive @directive2 on FIELD_DEFINITION
     8  directive @unimplemented on FIELD_DEFINITION
     9  
    10  extend type Query {
    11      directiveArg(arg: String! @length(min:1, max: 255, message: "invalid length")): String
    12      directiveNullableArg(arg: Int @range(min:0), arg2: Int @range, arg3: String @toNull): String
    13      directiveInputNullable(arg: InputDirectives): String
    14      directiveInput(arg: InputDirectives!): String
    15      directiveInputType(arg: InnerInput! @custom): String
    16      directiveObject: ObjectDirectives
    17      directiveObjectWithCustomGoModel: ObjectDirectivesWithCustomGoModel
    18      directiveFieldDef(ret: String!): String! @length(min: 1, message: "not valid")
    19      directiveField: String
    20      directiveDouble: String @directive1 @directive2
    21      directiveUnimplemented: String @unimplemented
    22  }
    23  
    24  extend type Subscription {
    25      directiveArg(arg: String! @length(min:1, max: 255, message: "invalid length")): String
    26      directiveNullableArg(arg: Int @range(min:0), arg2: Int @range, arg3: String @toNull): String
    27      directiveDouble: String @directive1 @directive2
    28      directiveUnimplemented: String @unimplemented
    29  }
    30  
    31  input InputDirectives {
    32      text: String! @length(min: 0, max: 7, message: "not valid")
    33      nullableText: String @toNull
    34      inner: InnerDirectives!
    35      innerNullable: InnerDirectives
    36      thirdParty: ThirdParty @length(min: 0, max: 7)
    37  }
    38  
    39  input InnerDirectives {
    40      message: String! @length(min: 1, message: "not valid")
    41  }
    42  
    43  type ObjectDirectives {
    44      text: String! @length(min: 0, max: 7, message: "not valid")
    45      nullableText: String @toNull
    46  }
    47  
    48  type ObjectDirectivesWithCustomGoModel {
    49      nullableText: String @toNull
    50  }