prisma-relay-cursor-connection icon indicating copy to clipboard operation
prisma-relay-cursor-connection copied to clipboard

Make `nodes` an optional return

Open queicherius opened this issue 2 years ago • 0 comments

It would be nice to be able to opt out of the nodes return value for use-cases where it's not needed. Requires a different function return type based on an options property.

Workaround

const result = await findManyCursorConnection(/* ... */)
delete result.nodes

Original conversion https://github.com/devoxa/prisma-relay-cursor-connection/pull/432#issuecomment-1116266226 and following.

queicherius avatar May 05 '22 20:05 queicherius