You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The addition of the nodes field in #432 is a super useful change when working on the frontend side, but unfortunately it doesn't work great when using custom edges.
With custom edges, the nodes field contains an array of the records instead of an array of the node specified in recordToEdge:
Also, I notice that the hasRequestedField when requesting all records wasn't updated to check for nodes. Right now, it only checks for edges and totalCount.
The addition of the
nodes
field in #432 is a super useful change when working on the frontend side, but unfortunately it doesn't work great when using custom edges.With custom edges, the
nodes
field contains an array of therecords
instead of an array of thenode
specified inrecordToEdge
:The typing of
nodes
is correct, but not the actual value inside.This use case is bit more complex so I wasn't able to find the change necessary to make things work 😕
In the meantime, I use this workaround:
Also, I notice that the
hasRequestedField
when requesting all records wasn't updated to check fornodes
. Right now, it only checks foredges
andtotalCount
.prisma-relay-cursor-connection/src/index.ts
Lines 78 to 86 in 7372ed8
The text was updated successfully, but these errors were encountered: