Sort rather than _id and apply pagination using last record id on that in mongod and nodeJs
I’m applying **filtering **on my data using three different filters mentioned in my code. this is my code /* Initialize pipeline */ const pipeline = []; /* All reviews of Auth Host */ pipeline.push({ $match: { host_id: new ObjectId(host_id) }, }); /* High rated on top */ if (filter && filter == "Highest Rated") {… Read More Sort rather than _id and apply pagination using last record id on that in mongod and nodeJs