Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tian-sheng-low opened this issue Oct 26, 2023 · 0 comments
Open

Comments

@tian-sheng-low
Copy link

tian-sheng-low commented Oct 26, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant