I have a document called game and a document called asset. Also there is a slice called AssetsGrid (assets_grid) which has a content relation field to asset in the repeatable zone. So the whole structure is roughly this:
To retrieve content from a linked document, you need to either use fetchLinks or graphQuery.
Since fetchLinks can not retrieve the field from the slice, so you need to use graphQuery.
Ok, now this is ridiculous. The documentation is completely out of date, and this was addressed months ago.
Please fix the docs and stop sending people to read them if you aware that they are out of date.
I managed to find a solution by reading other threads like this or this.
@Priyanka I've found your reply in a thread similar to this one, and it has example with correct API using slices and variation fields, but in the docs there are no mentions of those. Instead of it there is a query example with body (which is unable to find) and repeat fields.
For anyone desperately looking for a working example just like me, my query which works as expected is:
I am glad that you found the solution. You haven't mentioned complete detail in the query that it's a query for the SM slices, or else I would share this thread with you.
Our documentation team is working on a documentation update, and it will be available soon.