How to Preview Draft Data using GraphQl

How can we access Draft data (Unpublished one) as graphql query for Preview

Hi Asif,

Thank you for contributing to the Prismic community.
In order to be able to help you with this, I would need some more info.

First of all, I need to know the technology (React, Nextjs, Gatsby, ...) you are using as well as the Prismic API type (Rest API or GraphQL

By looking at the code snippet that you have provided, I can't find the query that you are using to fetch the draft data, It would be great if you provide this code.

It would also be useful to have the Prismic repository name that you are using.

Looking forward to your reply,
Fares

This issue has been closed due to inactivity. Flag to reopen.