public class EntityResolver
Federated _entities query resolver.
| Constructor and Description |
|---|
EntityResolver(FederatedTypeRegistry federatedTypeRegistry)
Federated _entities query resolver.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<graphql.execution.DataFetcherResult> |
get(graphql.schema.DataFetchingEnvironment env)
Resolves entities based on the passed in representations argument. Entities are resolved in the same order
they are specified in the list of representations. If target representation cannot be resolved, NULL will
be returned instead.
|
public EntityResolver(FederatedTypeRegistry federatedTypeRegistry)
Federated _entities query resolver.
public java.util.concurrent.CompletableFuture<graphql.execution.DataFetcherResult> get(graphql.schema.DataFetchingEnvironment env)
Resolves entities based on the passed in representations argument. Entities are resolved in the same order they are specified in the list of representations. If target representation cannot be resolved, NULL will be returned instead.
Representations are grouped by the underlying typename and each batch is resolved asynchronously before merging the results back into a single list that preserves the original order.