hygraph / gatsby-source-graphcms

The official Gatsby source plugin for GraphCMS projects
https://graphcms.com
MIT License
145 stars 41 forks source link

Slug field is unsupported #158

Closed moritzsalla closed 3 years ago

moritzsalla commented 3 years ago

Gatsby cannot query slug field and throws an error.

ynnoj commented 3 years ago

@moritzsalla Can you provide more information here? What's the error? Is there a reproduction I can look at?

moritzsalla commented 3 years ago

Hi ynnoj, sorry for the lack of information. My post is more of a feature request than an error: I noticed that gatsby-source-graphcms appears to lack support for some newer graphCMS fields (e.x. slug). I've switched to using gatsby-source-graphql instead for now.

ynnoj commented 3 years ago

There's no reason why slug fields shouldn't be supported. They're just a string.

Can you please check that the particular field you're having trouble querying is in the generated query fragment file? You can learn more here.

ynnoj commented 3 years ago

Closing this, let me know if you're still encountering problems.