Using aggregation stages without a leading '$' is deprecated and will be removed in a future version

Upgrading to 6.0. caused this Error: Router.use() requires a middleware function but got an object I opened an issue on GitHub.