Replies: 1 comment
-
|
You will likely have to apply that in your data fetcher implementation for
shop field, i.e. based on the root field (i.e. product or
productwithDataLoader) you will either invoke the data loader via "load" or
avoid do something else. Hope that helps.
…On Wed, Nov 30, 2022 at 6:38 PM 이준혁 ***@***.***> wrote:
type Query {
product(id: ID!): Product!
productWithDataLoader(id: ID!): Product!
}
type Product {
id: ID!
name: String!
shop: Shop!
}
type Shop {
id: ID!
name: String!
}
While testing shop field dataloader
@DgsData(parentType = DgsConstants.QUERY.Product, field = DgsConstants.PRODUCT.Shop)fun shopLoader(dfe: DgsDataFetchingEnvironment): CompletableFuture<Shop>
shoploader is always executed in product, productWithDataloader
But I want to apply it only to productWithDataLoader
I don't want to use shopLoader for product query, I want to call it up at
once (ex join..)
Is it possible to apply shopLoader only to productWithDataLoader?
—
Reply to this email directly, view it on GitHub
<#1346>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ5JPXO2AU5RXPPPDKAK433WLAFQ5ANCNFSM6AAAAAASQI5NEI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
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.
-
While testing shop field dataloader
shoploader is always executed in product, productWithDataloader
But I want to apply it only to productWithDataLoader
I don't want to use shopLoader for product query, I want to call it up at once (ex join..)
Is it possible to apply shopLoader only to productWithDataLoader?
Beta Was this translation helpful? Give feedback.
All reactions