-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
References are not resolved correctly in 7.4.2
#154
Comments
Any update? |
The |
Folks with resolveReferences issues... be sure to run I was convinced references weren't working in my PortableText blocks nested in an array field. |
Not really a solution as it causes longer build times and unnecessary usage of external API's etc. |
After upgrading to
gatsby-source-sanity
to7.4.2
references are not resolved correctly anymore. We have aBlockContent
that accepts the following schema type:Where
documentReference
contains areference
to some document types:The problem is that querying for
_rawBody(resolveReferences: {maxDepth: 10})
does not resolve all fields that used to be resolved. For example the referenced document will not includeinternal.type
. After downgrading to7.3.2
everything works fine again andinternal.type
containsSanityPage
orSanityDivision
as expected.The text was updated successfully, but these errors were encountered: