Fetch "modified date" + "publication date" with JS API

Hi there,

using the Prismic.predicates API atm and I was curious how I'd fetch some meta information of an article e.g. when the article was last modified and first published etc.

With GQL it's fairly easy and straightforward - how would I query this data with the javascript API?

Query is looking like this atm:

client.query(
    Prismic.Predicates.at(`my.CUSTOM_TYPE.uid`, uid),
    options, // can be any valid prismic option (e.g. fetchLinks)
  )

Hi Andi,

Those metadata exists in the document object in JavaScript please refer to this document

Please let us know if that doesn't answer your question,
Fares