Blog Post by Slug

blogPostBySlug #

blogPostBySlug(slug: String) PBlogPost

Example #

query blogPostBySlug($slug: String!){
  blogPostBySlug(slug: $slug) {
    id
    title
    slug
    bannerImage
    bannerImageFull
    content
    tags
    isPublished
    isFeatured
    views
    favourites
    comments {
      id
      content
      customer {
        email
        phone
        firstName
        lastName
        profilePicture
        profilePictureFull
      }
      createdAt
      updatedAt
    }
    createdAt
    updatedAt
  }
}

Try It Now