Skip to content

Instantly share code, notes, and snippets.

@JesseRWeigel
Created September 15, 2021 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JesseRWeigel/dc697aa2c9d27241a5955ba2de485d9e to your computer and use it in GitHub Desktop.
Save JesseRWeigel/dc697aa2c9d27241a5955ba2de485d9e to your computer and use it in GitHub Desktop.
const GET_POSTS = gql`
query GetPosts {
posts {
edges {
node {
id
title
author {
node {
firstName
lastName
avatar {
url
}
}
}
excerpt(format: RENDERED)
slug
content(format: RENDERED)
featuredImage {
node {
title
sourceUrl
}
}
}
}
}
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment