When querying for multiple instances of a particular content type, you can supply the limit
and skip
arguments in order to paginate the response.
The value of limit must be an integer between 1 and 100, and has a default value of 20
.
The following query retrieves the 10 books while skipping the first 5:
query {
bookCollection(limit: 10, skip: 5) {
items {
title
}
}
}
© 2022 Status200 Ltd.