#post detail page not working

4 messages · Page 1 of 1 (latest)

visual bridge
#

You may want to try:

  • sharing some code
  • explaining what's not working, what you expect
  • describing what you have tried so far

Make it easy for people to help you.

leaden stag
#

export async function getServerSideProps() {
const GET_POSTS = gql`
query GetAllPost{
posts{

  nodes{
    title
    excerpt
    uri
    slug
    date
    featuredImage {
      node {
        sourceUrl
      }
    }
  }
}

}
`
const response = await client.query({
query: GET_POSTS
});

const posts = response?.data?.posts?.nodes
return {
props: {
posts
}
}

}

#

this is my blog listing page query

#

this blog detail page