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

Codegen feature: InputValueSerializer could autodetect extra scalar mappings based on registration in META-INF #2085

Open
paulbakker opened this issue Dec 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@paulbakker
Copy link
Collaborator

For type mappings in Codegen we can register a mapping in META-INF for a library, so that Codegen automatically knows about the type. We can consider implementing a similar mechanism to register Coercing classes for scalars in InputValueSerializer, so that a user of a generated client API doesn't have to provide the mapping as follows explicitly:

GraphQLQueryRequest graphQLQueryRequest =
                new GraphQLQueryRequest(
                        query,
                        getEntityProjection(),
                        Map.of(URI.class, UriScalarImpl.INSTANCE.getCoercing()));
@paulbakker paulbakker added the enhancement New feature or request label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant