Hi, I am new to Prismic. I have created new custom type Announcement which contains Title, Image and Rich Text(very long text). Now I have a List Page where I just want to show Title. So how can I send a query so that I will just get Title not the Image URL and Rich Text. Reason for such a requirement is, I want to keep my json as small as possible for List Page
@nelson-thomas.pereir I've written a simple article explaining how and why I do it in my websites. Hope it helps.
Basically, for simple use-cases you can use the fetch API option and for more complicated cases you can use graphQuery
Hello @nelson-thomas.pereir
Welcome to the Prismic community and thanks for reaching out to us.
As @kris suggested You can use the fetch
parameter to make queries to retrieve the specified fields.
Please find more details on how to format the fetch
parameter:
Let me know if you have any further questions.
Thanks,
Priyanka