For an
input
type defined as
input FooInput {
someId: ID
}
I get the generated code:
public data class FooInput(
public val someId: Optional<String?> = Optional.Absent,
)
Is there no configuration like we have for
generateOptionalOperationVariables.set(false)
that can turn this into a normal nullable too? Or is it that for
input
types specifically that we don’t want to do that as the absence of the value vs the explicit
null
on the value itself matters too much?
In our use case I just want to either have the ID or not have it at all, there is no semantic difference between null and the absence of
someId
. Is there anything that could be done in the schema or in the codegen that I am missing to help me out here?