I am trying to pass a json query variable to query a json column. This set of variables works in the explorer. How do I pass that in Apollo Kotlin? I have tried as a json object, as a string and just the simpler orderId object, but get no result if passed as a string and get this error if passed as a JsonObject.
java.lang.IllegalStateException: Cannot write {"orderId":"KER9PHTSRAT8A"} to Json
{
"jsonFilter": {
"orderId": "KER9PHTSRAT8A"
},
"delegate": "34a7Z6VXoLoVGpd9ES311yFJfTUuyh9JN35Czc9REz3j"
}
I wrote a custom adapter according to Custom scalar types in Apollo Kotlin - Apollo GraphQL Docs
but got stuck at providing the Type.