Created
January 30, 2019 05:39
-
-
Save AlecAivazis/c2e3af4597677d8851991064c9fcf5f9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: [Auction] | |
} | |
type Auction { | |
id: ID! | |
photo: Photo | |
offers: [Bid] | |
highestOffer: Bid | |
} | |
type Bid { | |
id: ID! | |
user: User! | |
amount: Int! | |
} |
This file contains hidden or 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 Pet { | |
id: ID! | |
species: Species | |
breed: String! | |
owner: User! | |
} | |
type Photo { | |
id: ID! | |
pet: Pet! | |
url: String! | |
} | |
type User { | |
favoritePhoto: Photo | |
photoGallery: [Photo] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment