dgs-examples-java icon indicating copy to clipboard operation
dgs-examples-java copied to clipboard

How to use extends keyword of Java in Graphql

Open KushagraBindal opened this issue 4 years ago • 0 comments

I am having a class Foo & Boo

public class Foo{ String a; } public class Boo extends Foo{ String b; }

Boo will be my output object in .graphqls

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.

Is there any support present in dgs framework.

KushagraBindal avatar May 18 '21 05:05 KushagraBindal