Fetch rest of the slices in Graph Query

Hey Prismic team,

I've recently run into an issue fetching nested data within a content relationship field.
It was due to not being able to fetch all the RichText field in a fetch link query, so I had to use a Graph Query instead.

The problem I am facing is that there is no way (at least I don't think there is), to fetch the rest of the slices with something like ...slices.

Here you can see I have fetched the required nested content in a slice, but now it will only return this one slice.

Screenshot 2022-07-08 at 23.11.08

For now, I have done a temporary solution and added in all the other slices manually.

It would be nice if we could add something like ...slices like we do for the homepage custom type (...homepageFields).

I hope this makes sense! :slight_smile:

Thanks

Hello @louie

Welcome to the Prismic community, and thanks for your feedback.

For the moment, you need to specify each slice name to retrieve them and retrieve different fields related to another document; you need to specify the content relationship name too. I agree with your feedback and added it as a product feature idea, but It's not on our roadmap for the moment.

Thanks,
Priyanka

We have the same issue.
Our project has many slices, having to add them all here is very verbose.

Thanks @juan.manuel For raising the point for this feature request.