I’m not sure I understand what you mean by “a subset”. Do you mean that you would like to apply an additional filter on the passages, or simply acquire chunks of them at a time?
Pagination is built in to the default generated schema. The default size for Pagination is 64 – that’s how Fauna works in general. So we can update my example query like the following without changing the schema
{
findUserById(id: "1234") { # <- auto-generated query
_id
# other User fields...
# apply size limit for paginating Passages
passages(_size: 100) {
after # pagination is build in!
data {
_id
# other Passage fields
}
}
}
}
If you want to apply additional filters for your sub-selections, we don’t yet support filters or resolvers on user-type fields yet. That means you would need to create a top level custom resolver to handle the specific logic you desire. If that’s what you need, then I suggest taking another look around the forums and starting a new topic to focus on putting all of those elements together.
EDIT: Actually, it looks like that’s what this one is for Help with nested graphql query