-
public interface FederatedTypeResolver<T extends Object>
Resolver used to retrieve target federated types.
-
-
Method Summary
Modifier and Type Method Description abstract List<T>
resolve(DataFetchingEnvironment environment, List<Map<String, Object>> representations)
Resolves underlying federated types based on the passed in _entities query representations. abstract String
getTypeName()
This is the GraphQL name of the type T. -
-
Method Detail
-
resolve
abstract List<T> resolve(DataFetchingEnvironment environment, List<Map<String, Object>> representations)
Resolves underlying federated types based on the passed in _entities query representations. Entities need to be resolved in the same order they were specified by the list of representations. Each passed in representation should either be resolved to a target entity OR NULL if entity cannot be resolved.
- Parameters:
environment
- DataFetchingEnvironment for executing this queryrepresentations
- _entity query representations that are required to instantiate the target type
-
getTypeName
abstract String getTypeName()
This is the GraphQL name of the type T. It is used when running the resolvers and inspecting the GraphQL "__typename" property during the entities requests
-
-
-
-