import { UserInfoToBadgesResolver } from 'definitions' ; const resolver = async ( { id } , _ , { dataSources : { atomService } } ) => { if ( id === undefined ) { return [ ] ; } return atomService . findMany ( { table : 'user_badge' , where : { userId : id } } ) ; } ; export default resolver ;