# How to Preview Draft Data using GraphQl

**URL:** <https://community.prismic.io/t/how-to-preview-draft-data-using-graphql/4332>\
**Category:** Prismic for Content Creators\
**Created:** [March 2, 2021, 10:34am UTC](https://community.prismic.io/t/how-to-preview-draft-data-using-graphql/4332 "2021-03-02T10:34:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asifkarim073](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@asifkarim073](https://community.prismic.io/u/asifkarim073)\
**Post date:** [March 2, 2021, 10:34am UTC](https://community.prismic.io/t/how-to-preview-draft-data-using-graphql/4332/1 "2021-03-02T10:34:24Z")

</div>

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

 ![preview](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/f/f2799e5e8b34683945a98c1ee835385f5d8d3561.png)

---

<div class="post-metadata">

**Author:** ![Fares](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Fares](https://community.prismic.io/u/Fares)\
**Post date:** [March 3, 2021, 10:37am UTC](https://community.prismic.io/t/how-to-preview-draft-data-using-graphql/4332/3 "2021-03-03T10:37:04Z")

</div>

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](https://prismic.io/docs/technologies/introduction-to-the-content-query-api) or [GraphQL](https://prismic.io/docs/technologies/integrate-with-existing-js-project-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

---

<div class="post-metadata">

**Author:** ![Fares](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Fares](https://community.prismic.io/u/Fares)\
**Post date:** [April 2, 2021, 10:02am UTC](https://community.prismic.io/t/how-to-preview-draft-data-using-graphql/4332/4 "2021-04-02T10:02:08Z")

</div>

This issue has been closed due to inactivity. [Flag to reopen](https://community.prismic.io/t/re-open-a-thread/2175).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 12:48pm UTC](https://community.prismic.io/t/how-to-preview-draft-data-using-graphql/4332/5 "2021-12-09T12:48:02Z")

</div>


