import { getUserGroup } from 'common/utils' ; import { UserInfoToGroupResolver } from 'definitions' ; const resolver = async ( { id } , _ , { viewer } ) => { if ( ! viewer . group ) { return getUserGroup ( viewer ) ; } return viewer . group ; } ; export default resolver ;