We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If am using aggregate method on my collection it gives me error
ebug: internal, implementation, error TypeError: Uncaught error: ClientStatus.aggregate is not a function at server.route.config.pre.method.reply (
The text was updated successfully, but these errors were encountered:
Thanks for opening an issue. Since we don't expose a aggregate method in the base class, it'll be up to you to create one on your model(s).
aggregate
Or, we could extend the base class to expose the aggregate method of the underlying collection like we did in #23 for the distinct method.
distinct
Another thought would be to create a getter so we can access the underlying collection and use it directly. (Ex: MyClass.getCollection())
MyClass.getCollection()
Sorry, something went wrong.
Just expose it like distinct.
mongo-models was updated to expose the aggregate method and was published as mongo-models@1.1.0.
mongo-models
mongo-models@1.1.0
jedireza/mongo-models#2
No branches or pull requests
If am using aggregate method on my collection it gives me error
ebug: internal, implementation, error
TypeError: Uncaught error: ClientStatus.aggregate is not a function
at server.route.config.pre.method.reply (
The text was updated successfully, but these errors were encountered: