# What accessible properties are available on the route resolver

**URL:** https://community.prismic.io/t/what-accessible-properties-are-available-on-the-route-resolver/2709
**Category:** Developing with Prismic
**Tags:** product-feature-idea, slice-machine
**Created:** [November 16, 2020, 10:46am UTC](https://community.prismic.io/t/what-accessible-properties-are-available-on-the-route-resolver/2709 "2020-11-16T10:46:41Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![sel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/sel/32/1081_2.png) [@sel](https://community.prismic.io/u/sel)
#### Post date: [November 16, 2020, 10:46am UTC](https://community.prismic.io/t/what-accessible-properties-are-available-on-the-route-resolver/2709/1 "2020-11-16T10:46:41Z")

</div>

I'm referencing this page for the link resolver: [Template Content with Vue.js - Prismic](https://prismic.io/docs/technologies/link-resolver-vuejs)

And also this page for the route resolver: [Developer Documentation - Prismic](https://www.slicemachine.dev/documentation/nuxt/route-resolver/)

On the link resolver, there are options to define rules using id, uid, type, etc.

What properties can be used on the route resolver? Is it just type?

---

<div class="post-metadata">

### Author: ![marcellothearcane](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/marcellothearcane/32/224_2.png) [@marcellothearcane](https://community.prismic.io/u/marcellothearcane)
#### Post date: [November 16, 2020, 5:21pm UTC](https://community.prismic.io/t/what-accessible-properties-are-available-on-the-route-resolver/2709/2 "2020-11-16T17:21:44Z")

</div>

There's a table of available properties, if that's what you mean?

- doc.id
- doc.uid
- doc.type
- doc.tags
- doc.lang
- doc.isBroken

> **[Link Resolver with Vue.js - Prismic](https://prismic.io/docs/technologies/link-resolver-vuejs#accessible-properties)**

---

<div class="post-metadata">

### Author: ![sel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/sel/32/1081_2.png) [@sel](https://community.prismic.io/u/sel)
#### Post date: [November 16, 2020, 5:34pm UTC](https://community.prismic.io/t/what-accessible-properties-are-available-on-the-route-resolver/2709/3 "2020-11-16T17:34:07Z")

</div>

Yep, that's exactly what I mean. But when I use for example id in a route resolver I just get an error

---

<div class="post-metadata">

### Author: ![marcellothearcane](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/marcellothearcane/32/224_2.png) [@marcellothearcane](https://community.prismic.io/u/marcellothearcane)
#### Post date: [November 17, 2020, 6:03am UTC](https://community.prismic.io/t/what-accessible-properties-are-available-on-the-route-resolver/2709/4 "2020-11-17T06:03:45Z")

</div>

Could you share some examples of your code?

---

<div class="post-metadata">

### Author: ![sel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/sel/32/1081_2.png) [@sel](https://community.prismic.io/u/sel)
#### Post date: [November 17, 2020, 6:26am UTC](https://community.prismic.io/t/what-accessible-properties-are-available-on-the-route-resolver/2709/5 "2020-11-17T06:26:41Z")

</div>

Sure.

In my `nuxt.config.js` This works:

```auto
modules: [
    '@nuxtjs/style-resources',
    [
      "@nuxtjs/prismic", {
        "endpoint": "https://ventur.cdn.prismic.io/api/v2",
        "apiOptions": {
          "routes": [
            {
              "type": "page",
              "path": "/:uid"
            },
            {
              "type": "case_study",
              "path": "/experience/:uid"
            },
            {
              "type": "blog_post",
              "path": "/insights/:uid"
            }
          ]
        }
      }
    ],
    ["nuxt-sm"]
  ],

```

But if I add the following lines, this doesn't work:

```auto
modules: [
    '@nuxtjs/style-resources',
    [
      "@nuxtjs/prismic", {
        "endpoint": "https://ventur.cdn.prismic.io/api/v2",
        "apiOptions": {
          "routes": [
            {
              "type": "page",
              "path": "/:uid"
            },
            {
              "uid": "meet-the-team",
              "path": "/:uid"
            },
            {
              "type": "case_study",
              "path": "/experience/:uid"
            },
            {
              "type": "blog_post",
              "path": "/insights/:uid"
            }
          ]
        }
      }
    ],
    ["nuxt-sm"]
  ],

```

I get the error:

```auto
Error
Unexpected status code [400] on URL https://ventur.cdn.prismic.io/api/v2/documents/search?routes=%5B%7B%22type%22%3A%22page%22%2C%22path%22%3A%22%2F%3Auid%22%7D%2C%7B%22uid%22%3A%22meet-the-team%22%2C%22path%22%3A%22%2F%3Auid%22%7D%2C%7B%22type%22%3A%22case_study%22%2C%22path%22%3A%22%2Fexperience%2F%3Auid%22%7D%2C%7B%22type%22%3A%22blog_post%22%2C%22path%22%3A%22%2Finsights%2F%3Auid%22%7D%5D&page=1&pageSize=1&ref=X7JN2xIAACEAndh_&q=%5B%5Bat(document.type%2C%20%22header_menu%22)%5D%5D

```

---

<div class="post-metadata">

### Author: ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)
#### Post date: [November 17, 2020, 1:55pm UTC](https://community.prismic.io/t/what-accessible-properties-are-available-on-the-route-resolver/2709/7 "2020-11-17T13:55:37Z")

</div>

Hi Sel,

For the moment the route resolver only has access to the `type` property, as this is our first implementation of the route resolver we are open to suggestions as to which properties you would like to see. I will then pass these on a feature requests to the Slicemachine team.

For now the best thing to do if you want use the properties listed above is to also use a link resolver in your project.

The documentation explains which resolver takes priority and it's fall back:

> **[Slice Machine](https://www.slicemachine.dev/documentation/nuxt/route-resolver/#route-resolver-vs-link-resolver-)**
>
> Devs make the parts, users make the websites.

It also seem you weren't a Slicemachine group for the route resolver. Priyanka is moving you there now.

**For any future users:** You must be using Slicemachine to use the Route Resolver.

---

<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 3, 2020, 1:36pm UTC](https://community.prismic.io/t/what-accessible-properties-are-available-on-the-route-resolver/2709/8 "2020-12-03T13:36:30Z")

</div>

This is being tracked as an open feature request.

If you have another use-case for this feature, you can ['Flag' this topic to reopen](https://community.prismic.io/t/re-open-a-thread/2175). Please use the ❤ button to show your support for the feature and check out our [Feature Request Guidelines](https://community.prismic.io/t/feature-requests-what-do-you-already-love-what-could-be-better/844).

---

<div class="post-metadata">

### Author: ![Levi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/levi/32/24_2.png) [@Levi](https://community.prismic.io/u/Levi)
#### Post date: [December 9, 2021, 5:24pm UTC](https://community.prismic.io/t/what-accessible-properties-are-available-on-the-route-resolver/2709/9 "2021-12-09T17:24:50Z")

</div>


