quarkus-quickstarts
quarkus-quickstarts copied to clipboard
Quarkus Graphql throwing Class [com.google.gson.JsonObject] is not indexed in Jandex. can not scan Object Type, might not be mapped correctly. Kind = [CLASS]
Hi, I'm facing the error as shown below. Have tried using other maven dependency e.g. io.vertx.core.json.JsonObject but the issue still persist.
I'm running on maven 3.9.0, jdk 11 and Quarkus v3.4.3.
Managed to isolate the issue. Seems like Object type is no longer supported by Graphql. Is there any alternative for this?
@jmartisk ^^^ I don't think object has ever been supported.
This looks similar to the use case described in https://github.com/smallrye/smallrye-graphql/issues/1776 - it's not supported (yet).
Can we take some reference from spqr https://github.com/leangen/graphql-spqr/commit/5244588115e08319c4f52d9d0f1b26866303ee66 this commit added support in spqr for GSON/JACKSON