Skip to content

Instantly share code, notes, and snippets.

@AlecAivazis
Last active January 27, 2019 18:40
Show Gist options
  • Save AlecAivazis/e1249a1d72f7c00c300154166400069e to your computer and use it in GitHub Desktop.
Save AlecAivazis/e1249a1d72f7c00c300154166400069e to your computer and use it in GitHub Desktop.
type User {
id: ID!
username: String!
history: [Bid]
favoritePhoto: Photo
photoGallery: [Photo]
}
type Auction {
id: ID!
photo: Photo
offers: [Bid]
highestOffer: Bid
}
type Bid {
id: ID!
user: User!
amount: Int!
}
enum Species {
Dog
Cat
}
type Animal {
id: ID!
species: Species
breed: String!
}
type Photo {
id: ID!
animal: Animal
url: String!
owner: User!
auction: Auction!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment