git.sr.ht/~sircmpwn/gqlgen@v0.0.0-20200522192042-c84d29a1c940/codegen/testserver/schema.graphql (about) 1 directive @goModel(model: String, models: [String!]) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION 2 directive @goField(forceResolver: Boolean, name: String) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION 3 4 type Query { 5 invalidIdentifier: InvalidIdentifier 6 collision: It 7 mapInput(input: Changes): Boolean 8 recursive(input: RecursiveInputSlice): Boolean 9 nestedInputs(input: [[OuterInput]] = [[{inner: {id: 1}}]]): Boolean 10 nestedOutputs: [[OuterObject]] 11 modelMethods: ModelMethods 12 user(id: Int!): User! 13 nullableArg(arg: Int = 123): String 14 inputSlice(arg: [String!]!): Boolean! 15 shapeUnion: ShapeUnion! 16 autobind: Autobind 17 deprecatedField: String! @deprecated(reason: "test deprecated directive") 18 } 19 20 type Subscription { 21 updated: String! 22 initPayload: String! 23 } 24 25 type User { 26 id: Int! 27 friends: [User!]! @goField(forceResolver: true) 28 created: Time! 29 updated: Time 30 } 31 32 type Autobind { 33 int: Int! 34 int32: Int! 35 int64: Int! 36 37 idStr: ID! 38 idInt: ID! 39 } 40 41 type ModelMethods { 42 resolverField: Boolean! 43 noContext: Boolean! 44 withContext: Boolean! 45 } 46 47 type InvalidIdentifier { 48 id: Int! 49 } 50 51 type It { 52 id: ID! 53 } 54 55 input Changes @goModel(model:"map[string]interface{}") { 56 a: Int 57 b: Int 58 } 59 60 input RecursiveInputSlice { 61 self: [RecursiveInputSlice!] 62 } 63 64 input InnerInput { 65 id:Int! 66 } 67 68 input OuterInput { 69 inner: InnerInput! 70 } 71 72 scalar ThirdParty @goModel(model:"testserver.ThirdParty") 73 74 type OuterObject { 75 inner: InnerObject! 76 } 77 78 type InnerObject { 79 id: Int! 80 } 81 82 type ForcedResolver { 83 field: Circle @goField(forceResolver: true) 84 } 85 86 type EmbeddedPointer @goModel(model:"testserver.EmbeddedPointerModel") { 87 ID: String 88 Title: String 89 } 90 91 scalar UUID 92 93 enum Status { 94 OK 95 ERROR 96 } 97 98 scalar Time