Skip to content

Instantly share code, notes, and snippets.

@AlecAivazis
Last active January 27, 2019 18:40
Show Gist options
  • Save AlecAivazis/70d53902f77fb32ea99f82900918796d to your computer and use it in GitHub Desktop.
Save AlecAivazis/70d53902f77fb32ea99f82900918796d to your computer and use it in GitHub Desktop.
type User {
id: ID!
username: String!
history: [Bid]
}
type Auction {
id: ID!
offers: [Bid]
highestOffer: Bid
photoID: ID!
}
type Bid {
id: ID!
user: User!
amount: Int!
}
type Animal {
id: ID!
species: SPECIES
breed: String!
}
type Photo {
id: ID!
animal: Animal
url: String!
auctionID: ID!
}
type Query {
favoritePhotoForUser(user: ID!): Photo
photoGalleryForUser(user: ID!): [Photo]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment