I'm currently working through this guide to display rich text from Contentful.
After successfully installing gatsby-source-contentful
, I am now in the process of querying the rich text content using a graphQL query before integrating it into my template.
Problem: I am unable to make queries on the references
field.
It seems that there was a recent update which required querying the raw
subfield...however, I am having trouble querying any subfield within raw
.
I'm unsure about what could be causing this issue.
Query
{
allContentfulArticle {
edges {
node {
content {
raw
references {
... on ContentfulArticle {
contentful_id
title
slug
}
}
}
}
}
}
}
Error message https://i.sstatic.net/xAdTh.png