...
1directive @length(min: Int!, max: Int, message: String) on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | FIELD_DEFINITION
2directive @range(min: Int = 0, max: Int) on ARGUMENT_DEFINITION
3directive @custom on ARGUMENT_DEFINITION
4directive @logged(id: UUID!) on FIELD
5directive @toNull on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | FIELD_DEFINITION
6directive @directive1 on FIELD_DEFINITION
7directive @directive2 on FIELD_DEFINITION
8directive @directive3 on INPUT_OBJECT
9directive @unimplemented on FIELD_DEFINITION
10directive @order1(location: String!) repeatable on FIELD_DEFINITION | OBJECT
11directive @order2(location: String!) on OBJECT
12
13extend 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
27extend 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
34input 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
42input InnerDirectives {
43 message: String! @length(min: 1, message: "not valid")
44}
45
46type 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
52type ObjectDirectivesWithCustomGoModel {
53 nullableText: String @toNull
54}
View as plain text