Integration with latest mongoose