prisma-relay-cursor-connection
prisma-relay-cursor-connection copied to clipboard
Support Entities With `id: Int`?
Hello! Thanks for this package. I'm implementing it in a code base to transition from prisma1 -> prisma5. I ran into an issue where the types don't appear to be flowing and I'm unable to call findManyCursorConnection. It's a pretty simple call site but findManyCursorConnection doesn't appear to be inferring the correct types.
findManyCursorConnection(
args => prisma.creatorAnalytics.findMany(args),
() => prisma.creatorAnalytics.count(),
{},
);
The error is:
My schema looks like this. Is it because of the id: Int in my Prisma schema?