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

How should we handle transformations? #18

Open
boyeln opened this issue May 7, 2023 · 0 comments
Open

How should we handle transformations? #18

boyeln opened this issue May 7, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@boyeln
Copy link
Collaborator

boyeln commented May 7, 2023

Sometimes you have types that needs transformations. The simplest example is Date (or data time). This can be solved today through custom scalars (setting it to string). And then transformed/parsed in userland to the proper Date object/type.

Can we do better or is this the optimal solution? If it's the best solution, is there a golden path for people wanting to do custom transformation/parsing that's easy to integrate into the type system?

@boyeln boyeln added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant