Qustion Regarding multiple Child Fetchers #298
Unanswered
manu-mnnit
asked this question in
Q&A
Replies: 1 comment
-
|
Hi @manu-mnnit, Like this: @DgsData(ParentType="Query", field="a")
CompletableFuture<List<Entity>> func1() {
return CompletableFuture.supplyAsync(() -> Entity());
}
@DgsData(ParentType="Entity", field="b")
CompletableFuture<List<String>> func2() {
return CompletableFuture.supplyAsync(() -> "b")
}Check this docs for more info: |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @paulbakker ,
I have created multiple child fetchers in my project. It looks they run sequentially, is there any way to run them in parallel ?
E.g.
schema:
type Query{
a: [Entity]
}
type Entity{
field1: Int
field2: [b]
field3: [c]
}
type b{
f1: Int
}
type c{
f2: String
}
@dgsData(ParentType="Query", field="a")
List func1(){
return [a];
}
@dgsData(ParentType="Entity", field="b")
List func2(){
return [b];
}
@dgsData(ParentType="Entity", field="c")
List funn3(){
return [c];
}
Beta Was this translation helpful? Give feedback.
All reactions