quarkusio / quarkus-quickstarts

Quarkus quickstart code
https://quarkus.io
Apache License 2.0
1.97k stars 1.47k forks source link

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] #1344

Open zhenwei94 opened 1 year ago

zhenwei94 commented 1 year ago

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 commented 1 year ago

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

image

phillip-kruger commented 1 year ago

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

jmartisk commented 1 year ago

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

debu999 commented 10 months ago

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