Last active
January 27, 2019 18:40
-
-
Save AlecAivazis/70d53902f77fb32ea99f82900918796d 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] | |
} | |
type Auction { | |
id: ID! | |
offers: [Bid] | |
highestOffer: Bid | |
photoID: ID! | |
} | |
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
type Animal { | |
id: ID! | |
species: SPECIES | |
breed: String! | |
} | |
type Photo { | |
id: ID! | |
animal: Animal | |
url: String! | |
auctionID: ID! | |
} | |
type Query { | |
favoritePhotoForUser(user: ID!): Photo | |
photoGalleryForUser(user: ID!): [Photo] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment