Skip to content

Instantly share code, notes, and snippets.

View AlecAivazis's full-sized avatar
💭
I may be slow to respond.

Alec Aivazis AlecAivazis

💭
I may be slow to respond.
View GitHub Profile
{
allAuctions {
photo {
url
}
}
}
{
allAuctions {
photo {
url
}
user {
username
}
}
}
type User {
id: ID!
username: String!
history: [Auction]
}
type Auction {
id: ID!
photo: Photo
enum Species {
Dog
Cat
}
type Pet {
name: String!
id: ID!
species: Species
breed: String!
type Query {
node(id: ID!): Node
}
interface Node {
id: ID!
}
type User {
id: ID!
username: String!
auctionHistory: [Auction]
}
type Auction {
id: ID!
name: String!
photo: Photo!
extend type User {
favoritePhoto: Photo
photoGallery: [Photo]
}
extend type Auction {
photo: Photo!
}
extend type Photo {
type User {
id: ID!
username: String!
history: [Bid]
}
type Auction {
id: ID!
offers: [Bid]
highestOffer: Bid
type User {
id: ID!
username: String!
history: [Bid]
favoritePhoto: Photo
photoGallery: [Photo]
}
type Auction {
id: ID!