Open rgolea opened 5 years ago
Hi @rgolea thanks for your interest!
Good feature! But for now is out of scope. I started this project to solve the problem for TypeORM. Nevertheless, I'm interested to that point. The problem is that it requires a big refactor & rethink.
OR
operator (not trivial if I want use req.query
as an input for QueryBuilder
)Strategy Pattern
to make it pluggable & support multiple startegies & configurations.In the following weeks, I'll be working alone to stabilize & improve quality of codebase. When it be ready, I will notice you to contribute on mongoose adapter 😃
Hi @rgolea v2.0.0 release is planning for next month. Now, library is decoupled from TypeORM and it will easily add new adapters. If you are interested, feel free to open a PR :)
Hi there!
I love all the stuff this project has and I would like to congratulate you on it and to tell you to keep up the good work!
I would also love the api you got here going to be available to use with mongoose/mongo. The expected behaviour should be absolutely the same one but translated to mongo queries:
should translate to mongo like the following:
Then use it in your express like the following
And also use it with Nest like the following:
And into the controller like the following:
Not sure how aggregate works with mongoose and maybe how to pass in a raw query. Let me know if I can help you with it.
Thanks a lot!