prisma-nestjs-graphql icon indicating copy to clipboard operation
prisma-nestjs-graphql copied to clipboard

The generated BigInt type is incorrect

Open imoyh opened this issue 1 year ago • 1 comments

prisma version: 5.21.1 prisma-nestjs-graphql version: 20.0.3

The Prisma Schema defines a BigInt type, but the generated model and input classes have Field types that are String.

This is the Prisma Schema definition:

image

After generation:

image

imoyh avatar Nov 01 '24 02:11 imoyh

GraphQL does not natively support a BigInt type, as its standard Int type is limited to 32-bit integers.

See example in documentation https://github.com/unlight/prisma-nestjs-graphql?tab=readme-ov-file#graphqlscalars

unlight avatar Nov 04 '24 20:11 unlight