dgs-framework icon indicating copy to clipboard operation
dgs-framework copied to clipboard

feature: DefaultInputObjectMapper to support Kotlin non constructor fields

Open bsamartins opened this issue 3 years ago • 0 comments

Describe the Feature Request

Currently, the DefaultInputObjectMapper only supports setting fields in Kotlin classes through constructor arguments. We have some use cases where we can't use the generated classes and need to build our own representation of the types with property delegates.

Describe Preferred Solution

The object mapper should support setting object properties.

class TestType(val name: String) {
  var email: String? = null
  ...
  var dob: LocalDate? by myDelegate
}

Describe Alternatives

bsamartins avatar May 19 '22 13:05 bsamartins