Hello there! I've been trying to retrieve the author of a post with the Prismic API, and if I'm reading these forum posts correctly, it sounds like I would only be able to pull such data if it existed as a custom field I could access?
I was hoping to pull the creator of the document in question, which I see in the right rail of all of my prismic documents.
Hi there! You’re on the right track, but it all depends on your content modeling.
To retrieve an author’s name and display picture, the author needs to be a separate document that is then referenced in the post using a content relationship field. Once that’s set up, you can use fetchLinks or graphQuery to pull in the author’s details, such as their name and picture, in the API response.