github.com/Desuuuu/genqlient@v0.5.3/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 Mutation {
    16    createUser(input: NewUser!): User!
    17  }
    18  
    19  type User implements Being & Lucky {
    20    id: ID!
    21    name: String!
    22    luckyNumber: Int
    23    hair: Hair
    24    birthdate: Date
    25    friends: [User!]!
    26  }
    27  
    28  input NewUser {
    29      name: String!
    30  }
    31  
    32  type Hair { color: String }   # silly name to confuse the name-generator
    33  
    34  type Animal implements Being {
    35    id: ID!
    36    name: String!
    37    species: Species!
    38    owner: Being
    39    hair: BeingsHair
    40  }
    41  
    42  type BeingsHair { hasHair: Boolean! }   # silly name to confuse the name-generator
    43  
    44  enum Species {
    45    DOG
    46    COELACANTH
    47  }
    48  
    49  interface Being {
    50    id: ID!
    51    name: String!
    52  }
    53  
    54  interface Lucky {
    55    luckyNumber: Int
    56  }