Unable to retrieve htm, raw for repeatable type

My issue is quite similar to this

but I have the schema, so his problem is maybe not the same as mine.

So I was following this tutorial = Gatsby with Prismic CMS #1 Setup and walkthrough - YouTube
where I created a repeatable type called posts... but on the schema, I need to write it like this post: require("./src/schemas/posts.json") instead of posts: require("./src/schemas/posts.json"), in order to get it working and display slugs node. why is that?

And by following the docs, for the Rich Text field, I need to have raw:
render={slice.primary.content.raw}

query MyQuery {
  prismicPosts {
    data {
      post_title {
        text
      }
      post_thumbnail {
        url
        alt
      }
      body {
        slice_type
        primary {
          text {
            text  < ---- I want it to be raw or html but cant find a way to do it.
          }
        }
      }
    }
  }
}

I'm still new to this whole ecosystem so pardon my beginner mistake and understanding.
What I want is how to render slice zone for repeatable type. For single type, I'm able to but seems like the process is different.

I have tried following method:

query MyQuery {
  allPrismicPost {
    edges {
      next {
        data {
          post_title {
            text
          }
          post_thumbnail {
            url
            alt
          }
          body {
            ... on PrismicPostBodyText {
              slice_type
              primary {
                text {
                  raw
                }
              }
            }
          }
        }
      }
    }
  }
}

but its returning null

After hours of googling, seem like slug are deprecated and replace with UID.. How do I properly replace with UID

const path = require("path")

exports.createPages = async ({ reporter, actions, graphql }) => {
  const { createPage } = actions
  const blogTemplate = path.resolve("src/pages/detail.js")

  const result = await graphql(`
query MyQuery {
  allPrismicPosts {
    edges {
      node {
        id
        slugs
      }
    }
  }
}
  `)

  if (result.errors) {
reporter.panic(result.errors)
  }
  const posts = result.data.allPrismicPosts.edges
  posts.forEach(({ node }) => {
createPage({
  path: `/detail/${node.slugs[0]}/`,
  component: blogTemplate,
  context: {
    slug: node.id,
  },
})
  })
}

Hello Julio, welcome to the forum!

I just wanted to let you know that we're currently investigating this issue; there's another open similar thread that we're simultaneously tracking.

As soon as we have more information about this, we'll let you all know.

And about the path generation. You can query uid instead of slug, and you’ll get the uid, but actually, if you've correctly set up your link resolver you will only have to query the url value and pass it to the path:

Thanks

Hello Julio, I hope you're doing great.

I'm reaching out to you to ask you for the URL of your repository and the JSON of the custom type that is causing the error. You can send me these info via dm if you prefer

We need this info so we can further investigate the Gatsby issue using your endpoint.

Looking forward to your response.