some demo code of mongoose