Can't query portable text annotations with Graphql #4097
Replies: 3 comments
-
I love using sanity but man support options are pretty bad |
Beta Was this translation helpful? Give feedback.
-
if you do not want to use groq or gatsby, apparently you cannot use references in portable text. except if you want to do something like this: https://www.sanity.io/answers/handling-references-in-portable-text-in-graphql-without-gatsby-source-plugin |
Beta Was this translation helpful? Give feedback.
-
I'm trying to add annotations to my portable text fields for internal linking, as described here. However I'm using graphQL to query Sanity, and the
{fieldname}Raw
fields don't return any data in themarkDefs
, just the type and key, eg:Am I missing something? Is it not possible to use annotations properly with graphQL? And since the portabletext field is just a JSON blob there's no way to drill into it to resolve relations anyway correct?
Beta Was this translation helpful? Give feedback.
All reactions