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

Support Entities With `id: Int`?

Open rjhilgefort opened this issue 1 year ago • 0 comments

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(),
    {},
  );
image

The error is: CleanShot 2024-08-28 at 15 03 39@2x

My schema looks like this. Is it because of the id: Int in my Prisma schema? image

rjhilgefort avatar Aug 28 '24 21:08 rjhilgefort