i have a schema for Permissions :
const PermissionSchema = new mongoose.Schema({ name: { type: String, require: true }, parentId: { type: String },