Package 

Interface FederatedTypeResolver

    • 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
    • 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