quarkus-quickstarts icon indicating copy to clipboard operation
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]

Open zhenwei94 opened this issue 2 years ago • 4 comments
trafficstars

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.

image

zhenwei94 avatar Oct 22 '23 15:10 zhenwei94

Managed to isolate the issue. Seems like Object type is no longer supported by Graphql. Is there any alternative for this?

image

zhenwei94 avatar Oct 23 '23 02:10 zhenwei94

@jmartisk ^^^ I don't think object has ever been supported.

phillip-kruger avatar Oct 24 '23 11:10 phillip-kruger

This looks similar to the use case described in https://github.com/smallrye/smallrye-graphql/issues/1776 - it's not supported (yet).

jmartisk avatar Oct 24 '23 12:10 jmartisk

Can we take some reference from spqr https://github.com/leangen/graphql-spqr/commit/5244588115e08319c4f52d9d0f1b26866303ee66 this commit added support in spqr for GSON/JACKSON

doogle-oss avatar Jan 06 '24 15:01 doogle-oss