I stumbled upon the issue that fetchLinks only returns the first element of a specific field - in my case, the rich text field. So the second and third paragraphs are not returned. Quite a bummer.
I read that graphQuery is being referred to as fetchLinks v2, but tbh the syntax is just much more complex and not really intuitive - I know, it's basically gql syntax, but fetchLinks was just straightforward and simple.
I am having a hard time as well to migrate fetchLinks to graphQuery.
My use case is on the homepage, where I have some slices that have a content relationship field. With fetchLinks, I could simply do the following:
It's true that fetchLinks doesn't work if you want to retrieve linked content from Slices and Group fields. For that, you must use graphQuery. Let me allow you to clarify one thing that GraphQuery is different than GraphQL. GraphQuery is an updated version of fetchLinks which allows you to retrieve content from a Content Relationship field when using the REST API.
I think that your GraphQuery will look something like this:
I understand that using graphQuery is a bit complex and has an entirely different syntax, but once we learn it, I assume it wouldn't be a big problem. I will open this conversation to my team and see if we can simplify them. I'll have to continue this conversation internally.