Skip to content

Support a Date Scalar Type  #255

@aaronhayes

Description

@aaronhayes

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 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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions