Last active
January 27, 2019 18:40
-
-
Save AlecAivazis/e1249a1d72f7c00c300154166400069e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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