birkir / gatsby-source-prismic-graphql

Gatsby source plugin for Prismic GraphQL
MIT License
137 stars 75 forks source link

How to create a linkResolver if I have used extraPageFields to generate my pages #205

Open kb1995 opened 4 years ago

kb1995 commented 4 years ago

I have used a field "category" to generate a sub directory for my paths. I now need to create a linkResolver, but the problem is that I can't get the field "category" within my path info.

According to https://prismic.io/docs/reactjs/beyond-the-api/link-resolving , I get access to the document's type, uid, etc, but not the other fields.

Any advice is appreciated!

kb1995 commented 4 years ago

@birkir @Duaner could you please help out on this?