nexus-prisma
nexus-prisma copied to clipboard
Map BigInt with @id to ID
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 Int
s, but for types BigInt
that have @id
decorator set in the schema.prisma
file.
I can create a Pull Request implementing this feature!