Hi there,
I have a Category type that the users can add as many documents of Article type as they want.
And I'm trying to get a category type and its linked Article documents using this function:
const result = await client.getAllByType("category", {
orderings: [
{ field: "my.category.publishDate", direction: "desc" },
{ field: "document.first_publication_date", direction: "desc" },
],
filters: [
prismic.filter.at("my.category.uid", params.uid)
],
graphQuery: `
{
category {
name
group {
article {
title
publishDate
featuredImage
slices
meta_title
meta_description
meta_image
}
}
}
}
`,
})
So my question is, are there any way I can implement pagination for the article documents inside the group of the Category type?