Query document and return field types

Hi,

I need to fetch a document and get all the fields values as well as their type (i.e keytext, image, slice, etc) from prismic. Do you know any way to do that? Right now it's up to me to parse the data and figure out the type of each field in the front end which is complicated.
Thanks,
Lindsay

Hello Lindsay

Welcome to the Prismic Forum and thanks for reaching out to us.

It's not possible to fetch the type of Prismic component with API V2. As you said, you need to do it on the front end. I am curious to know why do you want to check the type of each field on the front end?

Thanks,
Priyanka

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.