Skip to content

How can i add support for batch _entities in federation #1488

Closed Answered by SaranSundar
SaranSundar asked this question in Q&A
Discussion options

You must be logged in to vote

@srinivasankavitha Thanks I got a federated apollo graph gateway running locally via passing in a service list to test out the entities, so a couple issues I noticed. One is that DgsEntityFetcher requires an argument of Map<String, Object> values which is fine. The real issue is the DataFetchingEnvironment dfe doesnt seem to be populating the context.

In my normal queries I can grab context and it populates the variables passed from headers, but when testing the federation its not passing the context through to the entity fetcher.

final Context context = DgsContext.getCustomContext(env);

  @DgsEntityFetcher(name = "Employer")
  public CompletableFuture<Employer> employer(Map<String, Objec…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@SaranSundar
Comment options

@SaranSundar
Comment options

Comment options

You must be logged in to vote
4 replies
@SaranSundar
Comment options

Answer selected by SaranSundar
@SaranSundar
Comment options

@srinivasankavitha
Comment options

@SaranSundar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants