This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mongoose, { InferSchemaType, Require_id } from "mongoose"; | |
// ########################################################################################## | |
// ######################################BLUEPRINT START##################################### | |
// ########################################################################################## | |
// Speciality of this blueprint | |
// 1. It will convert the document object array type to lean object array type | |
// 2. It will handle both optional and required fields of type array and object as well as nested object and array | |
// 3. No manual document interface creation is required |