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

Map BigInt with @id to ID #171

Open
georgekrax opened this issue Dec 12, 2021 · 0 comments
Open

Map BigInt with @id to ID #171

georgekrax opened this issue Dec 12, 2021 · 0 comments
Labels
community/help-wanted Not our focus, but accepting PRs configuration Related to configuration of Nexus Prisma generator type/feat Add a new capability or enhance an existing one

Comments

@georgekrax
Copy link

georgekrax commented Dec 12, 2021

I am using the type BigInt as an @id in many of my models, and would like to map it to ID type of GraphQL, like Int with @id is mapped to ID.

Perceived Problem

I can set projectIdIntToGraphQL to map either to Int or ID, but I cannot set the same when the @id is of type BigInt. It would be a helpful setting to have.

Ideas / Proposed Solution(s)

Create a projectIdBigIntToGraphQL attribute to settings, that is going to do the same projectIdIntToGraphQL does for Ints, but for types BigInt that have @id decorator set in the schema.prisma file.

I can create a Pull Request implementing this feature!

@georgekrax georgekrax added the type/feat Add a new capability or enhance an existing one label Dec 12, 2021
@jasonkuhrt jasonkuhrt added community/help-wanted Not our focus, but accepting PRs configuration Related to configuration of Nexus Prisma generator labels Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community/help-wanted Not our focus, but accepting PRs configuration Related to configuration of Nexus Prisma generator type/feat Add a new capability or enhance an existing one
Projects
None yet
Development

No branches or pull requests

2 participants