How to get aggregation pipeline result in a route.get in node.js

WOW it works, thank you very much Prasad Saya! The aggregate pipelines look like a great tool.