Skip to content

Instantly share code, notes, and snippets.

@AlecAivazis
Created January 30, 2019 05:39
Show Gist options
  • Save AlecAivazis/c2e3af4597677d8851991064c9fcf5f9 to your computer and use it in GitHub Desktop.
Save AlecAivazis/c2e3af4597677d8851991064c9fcf5f9 to your computer and use it in GitHub Desktop.
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!
}
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