Hey guys!! Is there a way to add fields to the dat...
# prisma-client
r
Hey guys!! Is there a way to add fields to the database but have them not fetch by default / not show up on the generated types?
The reasoning here is that I want to have a createdAt field in the DB for future reference, but given the problems with Date serialization in NextJS and the fact that I’m not using createdAt at the moment, I’d like to not have it returned atm, and was wondering if there’s a way to set that up
Found
@ignore
, which looks to be the right fit for my use-case. Thanks!
r
For serialising dates, you can use this: https://github.com/blitz-js/superjson
👍 1