-
- All Implemented Interfaces:
-
com.expediagroup.graphql.generator.federation.execution.FederatedTypeResolver
public interface FederatedTypePromiseResolver<T extends Object> implements FederatedTypeResolver
-
-
Method Summary
Modifier and Type Method Description abstract CompletableFuture<T>
resolve(DataFetchingEnvironment environment, Map<String, Object> representation)
Resolves underlying federated types by returning a CompletableFuture abstract String
getTypeName()
This is the GraphQL name of the type. -
-
Method Detail
-
resolve
abstract CompletableFuture<T> resolve(DataFetchingEnvironment environment, Map<String, Object> representation)
Resolves underlying federated types by returning a CompletableFuture
- Parameters:
environment
- DataFetchingEnvironment for executing this queryrepresentation
- entity representation that is required to resolve the target type
-
getTypeName
abstract String getTypeName()
This is the GraphQL name of the type. It is used when running the resolvers and inspecting the GraphQL "__typename" property during the entities requests.
-
-
-
-