Replies: 3 comments 3 replies
-
/cc @evanchooly(kotlin), @geoand(kotlin) |
Beta Was this translation helpful? Give feedback.
-
No sure if I understood the question: @GraphQLApi
public class GraphQLHandler {
public class PongResult{
public String pong = "pong";
}
@Query
public String fieldOnRootQuery(){
return "pong";
}
@Query
public PongResult ping(){
return new PongResult();
}
public String extendPong(@Source PongResult source ){
return "pongx";
}
} type PongResult {
extendPong: String
pong: String
}
"Query root"
type Query {
_service: _Service!
fieldOnRootQuery: String
ping: PongResult
} |
Beta Was this translation helpful? Give feedback.
-
Hi, Everyone. I wanted to extend the query using the https://quarkus.io/guides/smallrye-graphql#graphql-java. So I want to build a query builder that will take the JPA entities and make them queriable using graphql. To archive that I need extend query type Query {
# Existing query, which is built upon annotation.
} After calling the function
It should extend the type to something like extend type Query {
some: String
} This is supported in the DGS framework. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How can we add one more to extend the query type?
So I want to add one more field to the query.
Beta Was this translation helpful? Give feedback.
All reactions