Skip to content

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

@tian-sheng-low

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.

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