Updated usage; you need to pass the instance of mongoose you're using to create the schema.