import { environment } from 'common/environment' ; import { TagToEditorsResolver } from 'definitions' ; const resolver = ( { editors , owner } , { input } , { dataSources : { userService } } ) => { let ids = editors || [ ] ; if ( input ?. excludeAdmin === true ) { ids = ids . filter ( ( editor ) => editor !== environment . mattyId ) ; } if ( input ?. excludeOwner === true ) { ids = ids . filter ( ( editor ) => editor !== owner ) ; } return userService . dataloader . loadMany ( ids ) ; } ; export default resolver ;