import { MutationToClearSearchHistoryResolver } from 'definitions' ; const resolver = async ( _ , __ , { viewer , dataSources : { userService } } ) => { if ( ! viewer . id ) { return true ; } await userService . clearSearches ( viewer . id ) ; return true ; } ; export default resolver ;