import { UserToIsBlockedResolver } from 'definitions' ; const resolver = async ( { id } , _ , { viewer , dataSources : { userService } } ) => { if ( ! viewer . id ) { return false ; } return userService . blocked ( { userId : id , targetId : viewer . id , } ) ; } ; export default resolver ;