Skip to content

Instantly share code, notes, and snippets.

@AlecAivazis
Last active January 30, 2019 21:03
Show Gist options
  • Save AlecAivazis/db334127476484c1fe1b81a236684ce4 to your computer and use it in GitHub Desktop.
Save AlecAivazis/db334127476484c1fe1b81a236684ce4 to your computer and use it in GitHub Desktop.
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!]!
}
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