-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Support a Date Scalar Type #255
Copy link
Copy link
Closed
Labels
Description
Problem
Lots of databases support Date types. We don't have support them yet because not all databases support them.
Possible Solution
In the databases that support Date types, we can use datasource-specific attributes.
Original Solution
It would be useful to have a
Datescalar type in addition toDateTime. 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
Reactions are currently unavailable