Open Somsss236 opened 11 months ago
HI @Somsss236,
Please note that the Microprofile GraphQL spec states:
Note that generic types other than subtypes of java.util.Collection (such as java.util.List or java.util.Set) are not allowed to be specified as query return types.
I believe this is the issue that you are running into.
Hi @WhiteCat22 ,
This might relate to the spec but already same behaviour is raised in smallrye graphql and is fixed now. I expect the same to work in openliberty too. Please find the ticket raised in graphql.
Hi @Somsss236, we do not have an ETA as to when we will update to this version of smallrye-graphql.
I will leave this issue open on our backlog for tracking.
Hi @WhiteCat22 , Is there any way that I can update this version of smallrye-graphql in open liberty locally in my system? It would be helpful if you could share some reference to apply patch to existing open liberty version and build it locally.
Hi, I'm using the following code to generate GraphQL query. The nested field in response type has Generic type (Java Generics). Due to this schema is not generated automatically and getting exception
graphql.AssertException: type Object not found in schema
during startup.I'm Using (Open Liberty 23.0.0.10)
Here is my Example Code:
Exception:
Could you assist to me resolve the issue?