const mongoose = require('mongoose');
const exec = mongoose.Query.prototype.exec;
mongoose.Query.prototype.exec = async function () {
console.log(this.getQuery());
console.log(this.getFilter);
}
getting depreciation warning when using getQuery to use getFilter instead
and when using getFilter getting getFilter is not function