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
type User {
id: ID!
username: String!
auctionHistory: [Auction]
}
type Auction {
id: ID!
name: String!
photo: Photo!
interface Node {
id: ID!
}
type Query {
node(id: ID!): Node
}
enum Species {
Dog
Cat
}
type Pet {
name: String!
id: ID!
species: Species
breed: String!
type User {
id: ID!
username: String!
history: [Auction]
}
type Auction {
id: ID!
photo: Photo
{
allAuctions {
photo {
url
}
user {
username
}
}
}
{
allAuctions {
photo {
url
}
}
}
{
allAuctions {
photo {
id
}
user {
username
}
}
}
node(id: $id) {
... on Photo {
url
}
}
{
allAuctions {
offers {
user {
favoritePhoto {
url
}
}
}
}