use mongorepository as trait