You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Difference between this and v1 federation is that in V1 the @DgsEntityFetcher would live in a different service than the Company entity, but in federation V2, @DgsEntityFetchershould live in the same service as the entity@DgsComponentforCompany`.
EDIT
Solved my problem, which was mostly due to an incorrect interpretation of federation 2 and how it merges into the DGS. I think it would be nice to have an example for it in the docs, which currently only have federation 1 example.
Would the community be interested in such a pr?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all, I am trying to set up a federation 2 graph with entity representations in different subgraphs (as described in apollo spec)
I have set the entities up in two java services and managed to get the correct query plan:
Then i tried to define the representation query as such, but it was not hit:
Difference between this and v1 federation is that in V1 the
@DgsEntityFetcher
would live in a different service than theCompany
entity, but in federation V2, @DgsEntityFetchershould live in the same service as the entity
@DgsComponentfor
Company`.EDIT
Solved my problem, which was mostly due to an incorrect interpretation of federation 2 and how it merges into the DGS. I think it would be nice to have an example for it in the docs, which currently only have federation 1 example.
Would the community be interested in such a pr?
Beta Was this translation helpful? Give feedback.
All reactions