How to use Java Extends Keyword in Graphql #533
Unanswered
KushagraBindal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am new to GraphQL and so tried to search on Google but couldn't found any reasonable solution of my query.
I have two class Foo and Boo.
public class Foo{
String a;
}
public class Foo extends Boo{
String b;
}
Boo will be my output object in .graphqls
type getBoo : Boo
type Boo{
b:String
}
I am able to get the response of Boo in this. But if I wanted to get the a also as the output of above query then how can we define the type and graphqls.
Beta Was this translation helpful? Give feedback.
All reactions