Skip to content

Instantly share code, notes, and snippets.

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