Skip to content

Support constructor binding for input arguments #138

Closed
@koenpunt

Description

@koenpunt

Using spring-graphql with Kotlin works, but when a field has a data class representing an input type, the class can't be instantiated, and fails on BeanUtils.instantiateClass(ctor);.

This repo/commit demonstrates the issue by adding a Kotlin configuration to the project, and adding a test using a kotlin data class as mutation argument:

koenpunt@f85fd6e

A workaround is to not use data classes, but I do believe data classes should be supported as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions