Federation graph calls sequential vs parallel #1156
Replies: 5 comments 2 replies
-
|
This will be handled by the gateway. I assume you are using Apollo's gateway implementation for federating your graph? Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
|
@srinivasankavitha Thank you for the response. |
Beta Was this translation helpful? Give feedback.
-
|
@srinivasankavitha yes I am using Apollo graph and I have some follow-up questions. Can you please help with these questions as well ?
|
Beta Was this translation helpful? Give feedback.
-
example logic of resolving my names and Customer in the initial subgraph:- |
Beta Was this translation helpful? Give feedback.
-
|
@srinivasankavitha yes, there is a customer service which is handling Customer type as well as Names, and Profile type is served by a different service. In the the 2nd use case I mentioned, when I use @DgsEntityFetcher for resolving Cusomer type in customer service, I am able to resolve names and profiles in parallel. Thank you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Everyone,
I have a graph model like below and if I have federated sub graphs one resolving names and other for profile and both the subgraphs need the input value(customerId) to be accessed. Can you please help me understand the below questions
type Query {
customer(customerId: String!): Customer!
}
type Customer {
names: Names
profile : Profile
}
type Names {
firstName: String,
lastName: String,
middleName: String,
fullName: String,
prefix: String
}
type Profile {
email: String,
phone: String
}
TIA
Beta Was this translation helpful? Give feedback.
All reactions