You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to have a Date scalar type in addition to DateTime. It's a common requirement so it would make sense to build into the core scalar types.
As an alternative is there a way to define custom types which make use of the underlying database types? I've had a look at this documentation but that seems to extend the type with constraints.
I'm interested in something like
type Date = @pg.date
Reacted by tpo, Mitchell Fasanya, Cristian Rosescu, Marcel Overdijk, Daniel Daukševič, Josh Strobel and WaldoJeffers
Activity
matthewmueller commentedon May 18, 2020
Hey @aaronhayes, I've re-written your issue to add a problem statement. Hope you don't mind :-)
[-]Date Scalar Type [/-][+]Support a Date Scalar Type [/+]albertoperdomo commentedon Feb 3, 2021
This is now supported in the native types feature (in Preview). You can find the docs for it here: https://www.prisma.io/docs/concepts/components/preview-features/native-types/native-types-mappings#datetime
chore: update stale lockfile (#255)