github.com/operandinc/gqlgen@v0.16.1/plugin/modelgen/testdata/schema.graphql (about) 1 directive @goTag( 2 key: String! 3 value: String 4 ) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION 5 6 type Query { 7 thisShoudlntGetGenerated: Boolean 8 } 9 10 type Mutation { 11 thisShoudlntGetGenerated: Boolean 12 } 13 14 type Subscription { 15 thisShoudlntGetGenerated: Boolean 16 } 17 18 type MissingTypeNotNull implements MissingInterface & ExistingInterface { 19 name: String! 20 enum: MissingEnum! 21 int: MissingInterface! 22 existing: ExistingType! 23 missing2: MissingTypeNullable! 24 } 25 26 type MissingTypeNullable implements MissingInterface & ExistingInterface { 27 name: String 28 enum: MissingEnum 29 int: MissingInterface 30 existing: ExistingType 31 missing2: MissingTypeNotNull 32 } 33 34 input MissingInput { 35 name: String 36 enum: MissingEnum 37 } 38 39 enum MissingEnum { 40 Hello 41 Goodbye 42 } 43 44 interface MissingInterface { 45 name: String 46 } 47 48 union MissingUnion = MissingTypeNotNull | MissingTypeNullable | ExistingType 49 50 type ExistingType implements MissingInterface & ExistingInterface { 51 name: String 52 enum: ExistingEnum 53 int: ExistingInterface 54 existing: MissingTypeNullable 55 } 56 57 input ExistingInput { 58 name: String 59 enum: ExistingEnum 60 } 61 62 type FieldMutationHook { 63 name: String @goTag(key :"anotherTag", value: "tag") 64 enum: ExistingEnum @goTag(key: "yetAnotherTag", value: "12") 65 noVal: String @goTag(key: "yaml") @goTag(key : "repeated", value: "true") 66 repeated: String @goTag(key: "someTag", value: "value") @goTag(key : "repeated", value: "true") 67 68 } 69 70 enum ExistingEnum { 71 Hello 72 Goodbye 73 } 74 75 interface ExistingInterface { 76 name: String 77 } 78 79 union ExistingUnion = MissingTypeNotNull | MissingTypeNullable | ExistingType 80 81 "TypeWithDescription is a type with a description" 82 type TypeWithDescription { 83 name: String 84 } 85 86 "EnumWithDescription is an enum with a description" 87 enum EnumWithDescription { 88 CAT 89 DOG 90 } 91 92 "InterfaceWithDescription is an interface with a description" 93 interface InterfaceWithDescription { 94 name: String 95 } 96 97 "UnionWithDescription is an union with a description" 98 union UnionWithDescription = TypeWithDescription | ExistingType 99 100 101 interface Foo_Barer { 102 name: String! 103 } 104 105 type _Foo_Barr implements Foo_Barer { 106 name: String! 107 }