How to get fields from linked document inside a slice

Hi Phil,

Thanks for the quick response.

I've already consulted the posted links, but they don't exactly point me in the right direction. They don't have examples for when you want to grab fields from documents that are linked within a slice.

I really tried my best combining the existing information, but alas I didn't find any success.

The reason why I ditched the GraphQL route was twofold:

  • For some reason, my cache was always showing old data, and I always had to restart my server for it to show new content. Stack is NextJs by the way. I'm also not too familiar with GraphQL yet, so that may be a reason as well.
  • When I added a new slice to my type and added data to it, it refused to return me the correct data, It seemed to be related to Apollo / graphQL WARNING: heuristic fragment matching going on!. The strange thing is that the query in GraphQL playground was giving me the expected result, but copying it to my code, it returned no data at all..