This question is a follow up as a result of the above question. We are forced to use graphQuery because we are unable to get groups inside of a group without graphQuery. As a result, I'm attempting to change our other queries so that we have a pattern in the way we query prismic. However, I appear unable to do some of the same things as before.
Specifically, I used fetchLinks before to get linked items in some of our richtext. I can't seem to find a way to "reach into" the rich text with graphQuery to have it get linked content that way. Below is an example:
document
is the document type
paragraph
is a slice type
text_block_paragraph
is a rich text field
definition
is a link type within the above text field
{
document {
...documentFields
body {
...on paragraph {
non-repeat {
...non-repeatFields
text_block_paragraph {
definition
}
}
}
}
}
}
The above query does not work. It gives a 400.
I have tried all sorts of different shapes but can not seem to access or do anything within the rich text field text_block_paragraph
. It works just fine if I don't try and do anything within it but if I do anything inside it breaks.
There seems be answers to other questions regarding rich text that allude to this being possible but I can not find any guidance on the syntax to do so.
For extra reference, the fetchLinks query that works just fine looks something like:
{ 'fetchLinks': ['definition.definition'] }
Is this indeed possible? If so what is the syntax?
Thank you