graphql-kotlin icon indicating copy to clipboard operation
graphql-kotlin copied to clipboard

pojo support for query / mutation parameter

Open cryptoki opened this issue 2 years ago • 0 comments

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

cryptoki avatar Aug 12 '22 07:08 cryptoki