Pagination
Whenever two objects have a one-to-many relationship, the respective field will be paginated using cursor-based, forward pagination.
Nodes and Edges
product(id: "8S-DEMO-Polohemd-1") {
similarProducts {
edges {
node {
id
}
}
}
}
}{
"data": {
"product": {
"similarProducts": {
"edges": [
{
"node": {
"id": "8S-DEMO-Polohemd-10"
}
},
{
"node": {
"id": "8S-DEMO-Polohemd-9"
}
},
...,
{
"node": {
"id": "8S-DEMO-Polohemd-6"
}
}
]
}
}
}
}Slicing
Last updated
Was this helpful?