Skip to content

Instantly share code, notes, and snippets.

@jeremeylduvall
Created Dec 14, 2017
Embed
What would you like to do?
Final Home Page Query
export const pageQuery = graphql`
query IndexQuery {
allWordpressWpMe {
edges {
node {
name
description
avatar_urls {
wordpress_96
}
}
}
}
allWordpressPost( sort: { fields: [ date ], order: DESC } ) {
edges {
node {
id
title
slug
date( formatString: "/YYYY/MM/DD/" )
featured_media {
localFile {
childImageSharp {
sizes( maxWidth: 1000 ) {
...GatsbyImageSharpSizes
}
}
}
}
}
}
}
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment