You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
saveSession(session: SaveUserSessionInput!): String
data class SaveUserSessionInput(
val pageToLoad: String?,
var entries: MutableList<JsonObject>? #(com.google.gson.JsonObject)
)
While running the mutation I am getting this error: com.netflix.graphql.dgs.exceptions.DgsInvalidInputArgumentException: Input argument type 'class com.google.gson.JsonObject' doesn't match input {key=Symptom, value=dummy_symptom_value}
The parameter mapping doesn't support this sort of thing at the moment. If anything, I would classify it as a gap in our documentation. If you just wanted the raw map, you can use Map<String, Object>. But to get something like a Gson JsonObject, you'd need to implement your own Coercing implementation and use your own custom Scalar I think.
I think we could support registering of custom converters that would serve this purpose as well, but support for that hasn't been fleshed out.
I am using JSON scalar from DGS extended scalar library but it is failing to serialize it to input JsonObject.
Expected behavior
JSON scalar should be serialized to JsonObject
Actual behavior
JSON Scalar serialization to input JsonObject is failing
Steps to reproduce
I am using JSON from DGS extended scalar library, This the version I am using:
This is my mutation schema:
This is how I am calling it:
While running the mutation I am getting this error:
com.netflix.graphql.dgs.exceptions.DgsInvalidInputArgumentException: Input argument type 'class com.google.gson.JsonObject' doesn't match input {key=Symptom, value=dummy_symptom_value}
Stacktrace:
The text was updated successfully, but these errors were encountered: