Nested pagination fails to return the correct data for all parents when using a cursor. Assume the following record layout:
P1
P2
P3
Setting a cursor on C5 with a query like:
findManyP(...) { C(cursor: { id: "C5" }) ... })
The expected data (because the cursor only applies to P2) of the query above would be:
P1 { <no Cs> }
P2 { C5, C6 }
P3 { <no Cs> }
However, due to the way we currently resolve nested records together with nested pagination, we return:
P1 { <no Cs> }
P2 { C5, C6 }
P3 { C7, C8, C9 }
Nested pagination fails to return the correct data for all parents when using a cursor. Assume the following record layout:
P1
P2
P3
Setting a cursor on C5 with a query like:
The expected data (because the cursor only applies to P2) of the query above would be:
However, due to the way we currently resolve nested records together with nested pagination, we return: