# Unable to retrieve htm, raw for repeatable type

**URL:** <https://community.prismic.io/t/unable-to-retrieve-htm-raw-for-repeatable-type/4174>\
**Category:** Developing with Prismic\
**Tags:** gatsby\
**Created:** [February 20, 2021, 11:14am UTC](https://community.prismic.io/t/unable-to-retrieve-htm-raw-for-repeatable-type/4174 "2021-02-20T11:14:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![leo.caesar](https://avatars.discourse-cdn.com/v4/letter/l/278dde/32.png) [@leo.caesar](https://community.prismic.io/u/leo.caesar)\
**Post date:** [February 20, 2021, 1:38pm UTC](https://community.prismic.io/t/unable-to-retrieve-htm-raw-for-repeatable-type/4174/2 "2021-02-20T13:38:24Z")

</div>

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,
  },
})
  })
}
```

---

_[View the full topic](https://community.prismic.io/t/unable-to-retrieve-htm-raw-for-repeatable-type/4174)._
