# Graphql querying all doc from a type with sliceZone. Body option not appearing as documentation

**URL:** <https://community.prismic.io/t/graphql-querying-all-doc-from-a-type-with-slicezone-body-option-not-appearing-as-documentation/9010>\
**Category:** Developing with Prismic\
**Tags:** graphql\
**Created:** [February 10, 2022, 3:06pm UTC](https://community.prismic.io/t/graphql-querying-all-doc-from-a-type-with-slicezone-body-option-not-appearing-as-documentation/9010 "2022-02-10T15:06:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maria.arce](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@maria.arce](https://community.prismic.io/u/maria.arce)\
**Post date:** [February 10, 2022, 3:06pm UTC](https://community.prismic.io/t/graphql-querying-all-doc-from-a-type-with-slicezone-body-option-not-appearing-as-documentation/9010/1 "2022-02-10T15:06:31Z")

</div>

Hello Team,

Thank for reading me. I am trying to querying all the docs from a type that I created, because I will need some part of the data from one and another(at some point) to build a small component (which is not important for this but yeah).

So the point is, I am having exactly the same issue as this post 🙂[Link to the post](https://community.prismic.io/t/query-multiple-documents-inside-home-page/7139/9)

I am using the GraphiQL, but Im having hard time to figure out, so was reading the documentation, but after declaring node { } and then body I am getting, the markup error, the same as the guy in the post I shared. In my case I am trying to query all the documents from a type "case-teaser" and I would like to get inside the sliceZone called "cases\_slice", basically the 4 fields, I have inside.

I tried to follow up, the GraphiQL to see where it was taking me, but I only manage to do this:

```auto
query{
  allCaseTeasers{
    edges{
      node{
        
        slices{
            ... on CaseTeaserSlicesCases_slice{
               type 
            }

          }
          __typename
        }
      }
    }
  }

```

If someone, can explain how to do it properly I will really appreciate it . Will great or helpful, at some point to have the schema displayed in the explorer.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [February 10, 2022, 10:05pm UTC](https://community.prismic.io/t/graphql-querying-all-doc-from-a-type-with-slicezone-body-option-not-appearing-as-documentation/9010/2 "2022-02-10T22:05:17Z")

</div>

Hey @maria.arce, thanks for reaching out.

We can run a test on your GraphiQL endpoint. Can you send me the URL of your repository and the name of the fields you want to retrieve from the cases Slice?

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [February 22, 2022, 1:51pm UTC](https://community.prismic.io/t/graphql-querying-all-doc-from-a-type-with-slicezone-body-option-not-appearing-as-documentation/9010/5 "2022-02-22T13:51:37Z")

</div>

Hey @maria.arce, Here's a query to access the fields inside the variation:

```auto
{
  allCaseTeasers {
    edges {
      node {
        slices {
          __typename
          ... on CaseTeaserSlicesCases_slice {
            variation {
              ... on CaseTeaserSlicesCases_sliceDefaultSlice {
                items {
                  titleproject
                  resume
                  imgmainimage
                  link {
                    _linkType
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

```
