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