# GraphQL/slice issue

**URL:** <https://community.prismic.io/t/graphql-slice-issue/2684>\
**Category:** Developing with Prismic\
**Tags:** slice-machine\
**Created:** [November 13, 2020, 4:11pm UTC](https://community.prismic.io/t/graphql-slice-issue/2684 "2020-11-13T16:11:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarah.ledu](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@sarah.ledu](https://community.prismic.io/u/sarah.ledu)\
**Post date:** [November 13, 2020, 4:11pm UTC](https://community.prismic.io/t/graphql-slice-issue/2684/1 "2020-11-13T16:11:07Z")

</div>

Hi !  
It looks like we have an issue with the slices. We created a new custom type, and we cannot query the slice the way we normally do.

 ![Screenshot 2020-11-13 at 16.40.02](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/d/de5979a5ef1dd8515aa1df0ba657cd1412830732.png)

On the screenshot above I have 2 custom types. The first one is the new one. In the first one, I have one slice called Hero.  
When I write the query the same way I do for the second, which is:

```
data{
   body{
       ...on PrismicWebsitePageHero{
           hero_title
        }
   }
}

```

I get the error "PrismicWebsitePageHero does not exist, do you mean X, Y, Z?"

Could you please fix our issue ? We need to separate properly each slice as we reuse slices from one custom type to another.

Thanks in advance !

---

<div class="post-metadata">

**Author:** ![sarah.ledu](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@sarah.ledu](https://community.prismic.io/u/sarah.ledu)\
**Post date:** [November 16, 2020, 10:57am UTC](https://community.prismic.io/t/graphql-slice-issue/2684/3 "2020-11-16T10:57:34Z")

</div>

Issue solved : I was missing the mention of the schema in gatsby-config [https://github.com/angeloashmore/gatsby-source-prismic/issues/285](https://github.com/angeloashmore/gatsby-source-prismic/issues/285)

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [November 16, 2020, 3:48pm UTC](https://community.prismic.io/t/graphql-slice-issue/2684/4 "2020-11-16T15:48:11Z")

</div>

Hello,

Welcome back to the community. I'm glad that you've resolved the issue. Don't hesitate to reach out us if you have any issue.

Thanks,  
Priyanka

---

<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:** [November 17, 2020, 3:48pm UTC](https://community.prismic.io/t/graphql-slice-issue/2684/5 "2020-11-17T15:48:22Z")

</div>

closed on November 17, 2020, 3:48pm UTC as resolved,  flag & select 'Something Else' to reopen.

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

---

<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, 5:59pm UTC](https://community.prismic.io/t/graphql-slice-issue/2684/6 "2021-12-09T17:59:13Z")

</div>

Opened on December 9, 2021, 5:59pm UTC


