Group of objects are returned as Collection types containing pagination information and items, such as CategoryCollection.
The response is controlled with the page and perPage arguments.
query GetCategories ($page: Int =1,$perPage: Int =10){
cms {
categories (page:$page,perPage:$perPage){
pagination {
page
lastPage
total
}
items {
id
name
description
}}}}
query Products {
cms {
products (query:"dateFrom:[2020-09-01 TO 2020-10-01]"){
items {
id
name
dateFrom
}}}}
1 2 3 4 5 6 7 8 9 10 11 12 13
{"data":{"cms":{"products":{"items":[{"id":"1","name":"The line","dateFrom":"2020-09-27T01:30:12.000Z","dateTo":null},{"id":"2","name":"Die Hard : belle journée pour mourir","dateFrom":"2020-09-27T01:30:12.000Z","dateTo":null},// ...]}}}}