import { LikerToTotalResolver } from 'definitions' ; const resolver = async ( { id } , _ , { dataSources : { userService } } ) => { const liker = await userService . findLiker ( { userId : id } ) ; if ( ! liker ) { return 0 ; } return userService . likecoin . total ( { liker } ) ; } ; export default resolver ;