Package 

Interface FederatedTypeResolver

  • All Implemented Interfaces:

    
    public interface FederatedTypeResolver<T extends Object>
    
                        

    Resolver used to retrieve target federated types.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 query
        representations - _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