import { OAuthClientToUserResolver } from 'definitions' ; const resolver = async ( { userId } , _ , { dataSources : { userService } } ) => { return userId ? userService . dataloader . load ( userId ) : null ; } ; export default resolver ;