Sub-nested fields or subfields on Apollo Client Type Policies

I am trying to use pagination on a field that is 3 levels deep: Query > BusinessProfile > CustomerProfile > paginatedCustomerActivities and I am unable to.

If I moved up the paginated data one level in the graph, it works just fine.

How would I go about using a merge, read function on sub-nested field?

These are not “sub-nested” fields from a client perspective - they are just a field on CustomerProfile.

From that perspective, your first typePolicy alone should work.

The second one will cause problems, though, since you are trying to apply pagination to a property that is a direct reference - and your third one will override the second one with a subFields field that just has no meaning for Apollo Client.

Please try deleting the second and third typePolicy and I believe that should already be enough for you.