Can the Graph Query return last_publication_date?

Hey everyone, when making a graph query, some of the document data is present, like the id, and an assortment of user data (that gets defined), but we can't seem to grab the first or last_publication_date.

this is what we're sending to the graphQuery: option. Is it possible to grab last_publication_date?

    const postQuery = `
  ... on post {
    title
    subtitle
    lead
    header_image
    article_published_at
  }`

const blogGraphQuery = `{
  blog_index {
    intro_title
    intro_summary
    featured_post {
      ${postQuery}
    }
    top_posts {
      post {
        ${postQuery}
      }
    }
    body {
      ... on category_preview {
        non-repeat {
          category_title
          more_link_text
          more_link_hover_text
        }
        repeat {
          size
          highlighted_post {
            ${postQuery}
          }
        }
      }
    }
  }
}`

Hi @ryan, I’m very sorry for the delay, it seems that we lost track of this thread.

As you’ve discovered, linked documents don’t return the first or last publication dates. And unfortunately there is no way to retrieve it using GraphQuery or fetchLinks. The only way to get it would be to run a second query for that linked document.

I will let the @features-team know about this and they can add this to our feature request tracker as a possible improvement for the future.

1 Like

This is being tracked as an open feature request.

If you have another use-case for this feature, you can 'Flag' this topic to reopen. Please use the :heart: button to show your support for the feature and check out our Feature Request Guidelines.