devoxa/prisma-relay-cursor-connection

Feature Request: Custom Edge Fields

ahmetuysal opened this issue · 0 comments

GraphQL Cursor Connections Specification allows additional fields in Edges. Currently it is not possible to have custom edge fields since the package directly returns
edges: nodes.map((node) => ({ cursor: encodeCursor(node, options), node })), in findManyCursorConnection function.
I have custom edge fields in some connections and I basically duplicated your implementation to implement those connections.

I think this could be a useful feature for this package. What do you think?

Thank you for your work, it really helped me.