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

Specify type for scalar "ID" explicitly (with converter) #4

Open
WipeAir opened this issue Jun 11, 2020 · 0 comments
Open

Specify type for scalar "ID" explicitly (with converter) #4

WipeAir opened this issue Jun 11, 2020 · 0 comments
Labels
enhancement New feature or request module: codegen Issue belongs to the codegen module.

Comments

@WipeAir
Copy link
Contributor

WipeAir commented Jun 11, 2020

There should be the possibility to set an explicit type for the "ID" scalar. This functionality should also come with a convert, as the ID is typically given as a String.

This may be implemented like this:

  • Two new properties within the CodegenOptions. (Reference to the ID type and the converter implementation)
  • Special handling for the ID scalar within the TypeMapper.
  • Generate a converter interface.
@WipeAir WipeAir added enhancement New feature or request module: codegen Issue belongs to the codegen module. labels Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request module: codegen Issue belongs to the codegen module.
Projects
None yet
Development

No branches or pull requests

1 participant