github.com/fortexxx/gqlgen@v0.10.3-0.20191216030626-ca5ea8b21ead/plugin/modelgen/testdata/schema.graphql (about) 1 type Query { 2 thisShoudlntGetGenerated: Boolean 3 } 4 5 type Mutation { 6 thisShoudlntGetGenerated: Boolean 7 } 8 9 type Subscription { 10 thisShoudlntGetGenerated: Boolean 11 } 12 13 type MissingTypeNotNull implements MissingInterface & ExistingInterface { 14 name: String! 15 enum: MissingEnum! 16 int: MissingInterface! 17 existing: ExistingType! 18 missing2: MissingTypeNullable! 19 } 20 21 type MissingTypeNullable implements MissingInterface & ExistingInterface { 22 name: String 23 enum: MissingEnum 24 int: MissingInterface 25 existing: ExistingType 26 missing2: MissingTypeNotNull 27 } 28 29 input MissingInput { 30 name: String 31 enum: MissingEnum 32 } 33 34 enum MissingEnum { 35 Hello 36 Goodbye 37 } 38 39 interface MissingInterface { 40 name: String 41 } 42 43 union MissingUnion = MissingTypeNotNull | MissingTypeNullable | ExistingType 44 45 type ExistingType implements MissingInterface & ExistingInterface { 46 name: String 47 enum: ExistingEnum 48 int: ExistingInterface 49 existing: MissingTypeNullable 50 } 51 52 input ExistingInput { 53 name: String 54 enum: ExistingEnum 55 } 56 57 enum ExistingEnum { 58 Hello 59 Goodbye 60 } 61 62 interface ExistingInterface { 63 name: String 64 } 65 66 union ExistingUnion = MissingTypeNotNull | MissingTypeNullable | ExistingType 67 68 "TypeWithDescription is a type with a description" 69 type TypeWithDescription { 70 name: String 71 } 72 73 "EnumWithDescription is an enum with a description" 74 enum EnumWithDescription { 75 CAT 76 DOG 77 } 78 79 "InterfaceWithDescription is an interface with a description" 80 interface InterfaceWithDescription { 81 name: String 82 } 83 84 "UnionWithDescription is an union with a description" 85 union UnionWithDescription = TypeWithDescription | ExistingType