mongoose-extended-filter
Extended filter for Mongoose
Use
const mongoose = ;const mongooseExtendedFilter = ; const treeSchema = name: String; const branchSchema = name: String tree: type: ObjectId ref: 'Tree' ; treeSchema;branchSchema; const Tree = mongoose;const Branch = mongoose; Branch ; // or with dot-notationBranch ;