Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.
This repository was archived by the owner on Jun 2, 2026. It is now read-only.

Support the conversion of date & datetime format to GraphQL type #500

Description

@tian-sheng-low

Just wondering if OtG has any plan to support the conversion of date/datetime format schema into graphql-scalar date types etc.

I read this issue and it seems like date/datetime type is out of the support scope, I just want to make sure that if I understand it correctly.
#244 (comment)

The way I see is that for the complex use cases can be handled by people saving schema and making some manual tweaks like:
Adding scalars ( like Date or https://github.com/Urigo/graphql-scalars)
Adding directives
Adding interfaces etc.
For some of those people might need to drop some extra code in the form of custom resolver but this will be much simple rather than trying to cover all those in the generic engine cases.

If that is not the case(support for date/datetime type is fine with the scope), then I am happy to send a PR for that.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions