Last active
January 30, 2019 21:03
-
-
Save AlecAivazis/db334127476484c1fe1b81a236684ce4 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! | |
auctionHistory: [Auction] | |
} | |
type Auction { | |
id: ID! | |
name: String! | |
photo: Photo! | |
offers: [Bid] | |
highestOffer: Bid | |
} | |
type Bid { | |
user: User! | |
amount: Int! | |
} | |
type Photo { | |
id: ID! | |
} | |
type Query { | |
allAuctions: [Auction!]! | |
} |
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 { | |
name: String! | |
id: ID! | |
species: Species | |
breed: String! | |
owner: User! | |
photos: [Photo!]! | |
} | |
type Photo { | |
id: ID! | |
pet: Pet! | |
url: String! | |
} | |
type User { | |
id: ID! | |
favoritePhoto: Photo | |
photoGallery: [Photo] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment