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

NullValue{} in generated code #770

Open
mores opened this issue Dec 22, 2024 · 0 comments
Open

NullValue{} in generated code #770

mores opened this issue Dec 22, 2024 · 0 comments

Comments

@mores
Copy link

mores commented Dec 22, 2024

I downloaded schema.json from my service provider.
I used graphql-introspection-json-to-sdl to convert it to schema.graphql
I used graphqlcodegen-maven-plugin ( 1.61.5 ) to generate java objects.
At this point the objects will not compile - it complains about:
private Integer maximum = NullValue{};
I get this same error when using gradle:
id "com.netflix.dgs.codegen" version "6.3.0" and "7.0.3"

Is this a bug with the codegen or a lack of configuration ?
I did look over: https://netflix.github.io/dgs/generating-code-from-schema/

an example schema.graphql that creates this issue is:

input QuantityRuleInput {
increment: Int!
maximum: Int = null
minimum: Int!
variantId: ID!
}

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