github.com/nathanstitt/genqlient@v0.3.1-0.20211028004951-a2bda3c41ab8/internal/integration/schema.graphql (about) 1 scalar Date 2 3 type Query { 4 me: User 5 user(id: ID): User 6 being(id: ID!): Being 7 beings(ids: [ID!]!): [Being]! 8 lotteryWinner(number: Int!): Lucky 9 usersBornOn(date: Date!): [User!]! 10 usersBornOnDates(dates: [Date!]!): [User!]! 11 userSearch(birthdate: Date, id: ID): [User] 12 fail: Boolean 13 } 14 15 type User implements Being & Lucky { 16 id: ID! 17 name: String! 18 luckyNumber: Int 19 hair: Hair 20 birthdate: Date 21 friends: [User!]! 22 } 23 24 type Hair { color: String } # silly name to confuse the name-generator 25 26 type Animal implements Being { 27 id: ID! 28 name: String! 29 species: Species! 30 owner: Being 31 hair: BeingsHair 32 } 33 34 type BeingsHair { hasHair: Boolean! } # silly name to confuse the name-generator 35 36 enum Species { 37 DOG 38 COELACANTH 39 } 40 41 interface Being { 42 id: ID! 43 name: String! 44 } 45 46 interface Lucky { 47 luckyNumber: Int 48 }