mongoose service (deprecated)