nexus-prisma icon indicating copy to clipboard operation
nexus-prisma copied to clipboard

Map BigInt with @id to ID

Open georgekrax opened this issue 3 years ago • 0 comments

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 avatar Dec 12 '21 19:12 georgekrax