Skip to content

Support ArgumentValue wrapper for input parameters in Kotlin generator #1575

@bczerwinski-equinix

Description

@bczerwinski-equinix

Kotlin input parameters generation does not support useWrapperForNullableInputTypes configuration property (https://github.com/kobylynskyi/graphql-java-codegen/blob/main/src/main/java/com/kobylynskyi/graphql/codegen/kotlin/KotlinGraphQLTypeMapper.java#L193).
Looking at the comments mentioned below I am not sure if adding support for this flag is planned?
Kotlin does not provide org.springframework.graphql.data.ArgumentValue functionality - only kind of an equivalent of the optional pattern. ArgumentValue provides both nullable optional and omitted flag features that could be very useful in input parameters.

The optional specification of Java SE8 is not applicable to scala and kotlin. In the functional programming, the data class has accurately described the data type. Therefore, I think only Java needs it.

Originally posted by @jxnu-liguobin in #1450 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions