graphql-kotlin
graphql-kotlin copied to clipboard
pojo support for query / mutation parameter
up to version 5.x we could use our Java Pojos
public class SomeOldPojo {
public String value;
}
fun pojo(pojo: SomeOldPojo): String? = "hello ${pojo.value}"
query {
pojo(pojo: {value: "abc"})
}
with the 6.x release the Jackson ObjectMapper is removed and therewith the java support. Is there a best practice to use / integrate old pojo?
little playground https://github.com/cryptoki/graphql-defaults