github.com/animeshon/gqlgen@v0.13.1-0.20210304133704-3a770431bb6d/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  directive @order1(location: String!) on FIELD_DEFINITION | OBJECT
    10  directive @order2(location: String!) on OBJECT
    11  
    12  extend type Query {
    13      directiveArg(arg: String! @length(min:1, max: 255, message: "invalid length")): String
    14      directiveNullableArg(arg: Int @range(min:0), arg2: Int @range, arg3: String @toNull): String
    15      directiveInputNullable(arg: InputDirectives): String
    16      directiveInput(arg: InputDirectives!): String
    17      directiveInputType(arg: InnerInput! @custom): String
    18      directiveObject: ObjectDirectives @order1(location: "Query_field")
    19      directiveObjectWithCustomGoModel: ObjectDirectivesWithCustomGoModel
    20      directiveFieldDef(ret: String!): String! @length(min: 1, message: "not valid")
    21      directiveField: String
    22      directiveDouble: String @directive1 @directive2
    23      directiveUnimplemented: String @unimplemented
    24  }
    25  
    26  extend type Subscription {
    27      directiveArg(arg: String! @length(min:1, max: 255, message: "invalid length")): String
    28      directiveNullableArg(arg: Int @range(min:0), arg2: Int @range, arg3: String @toNull): String
    29      directiveDouble: String @directive1 @directive2
    30      directiveUnimplemented: String @unimplemented
    31  }
    32  
    33  input InputDirectives {
    34      text: String! @length(min: 0, max: 7, message: "not valid")
    35      nullableText: String @toNull
    36      inner: InnerDirectives!
    37      innerNullable: InnerDirectives
    38      thirdParty: ThirdParty @length(min: 0, max: 7)
    39  }
    40  
    41  input InnerDirectives {
    42      message: String! @length(min: 1, message: "not valid")
    43  }
    44  
    45  type ObjectDirectives @order1(location: "ObjectDirectives_object_1") @order2(location: "ObjectDirectives_object_2") {
    46      text: String! @length(min: 0, max: 7, message: "not valid")
    47      nullableText: String @toNull
    48      order: [String!]!
    49  }
    50  
    51  type ObjectDirectivesWithCustomGoModel {
    52      nullableText: String @toNull
    53  }