Contentful logo

Contentful Community

How to get firstPublishDate of each blog entry?

Hi, I want to have the first publish date of each blog post.

I have a content type blogPost, which I fetch using the JS sdk like so:

await client.getEntries({
      content_type: "blogPost",

Ultimately I get an array containing the blog posts, and a firstPublish for the query itself (?), but each object does NOT contain a firstPublished or similar field.

So how can I query for all blog posts, and still get a response that attributes a firstPublish date for each blog post?