Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The generated BigInt type is incorrect #223

Open
imoyh opened this issue Nov 1, 2024 · 1 comment
Open

The generated BigInt type is incorrect #223

imoyh opened this issue Nov 1, 2024 · 1 comment

Comments

@imoyh
Copy link

imoyh commented Nov 1, 2024

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

@unlight
Copy link
Owner

unlight commented Nov 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants