-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose CRUD through API #12
Comments
@joshjcarrier I'm thinking the graphql model can be like
Need a much better name than bucket. Repo implies only 1 github repo but an org might share the same memes. Org implies it won't work for single repos. The reason I'd want to put url/width/height into an image object instead of directly on the meme, is so we might have multiple images per meme in the future, for things like thumbnails. |
# Relay-compliant global identification.
interface Node {
id: ID!
}
type Meme {
# The text that this meme replaces.
macro: String!
# The meme's insertable image.
image: Image!
}
# An image.
type Image {
# The recommended height for the image.
height: Int!
# An embeddable link to image content.
url: URI!
# The recommended width for the image.
width: Int!
}
# A grouping of memes that are used together.
type Collection implements Node {
# A globally unique ID for the collection.
id: ID!
# All memes that belong to this collection.
memes(
# The number of memes to return.
first: Int,
# An optional offset by cursor.
after: String): MemeConnection!
}
# A paginated set of memes.
type MemeConnection {
# Memes in the paginated set.
nodes: [Meme]!
# Pagination metadata.
pageInfo: PageInfo!
}
# A meme in a connection.
type MemeEdge {
node: Meme!
cursor: String!
}
# Relay-compliant pagination metadata.
type PageInfo {
hasNextPage: Boolean!
hasPreviousPage: Boolean!
}
# The query root for LGTMeme.
type Query {
# Find a collection by its URL segment.
collection(slug: String): Collection
node(id: ID!): Node
}
# An ISO-8601-compliant string for URLs.
scalar URI |
File upload blocked by netlify/netlify-lambda#42. :| |
No description provided.
The text was updated successfully, but these errors were encountered: