We have some basic query methods (where, equals...). It`s enough for simply scenarios. Whan about to add some more?
How to get length of collection and not to get all data of it? Some kind of 'count' method would be needed.
There is 'contains' method for seek value in array. For simple search scenarios 'contains' in string method is absolutly needed.
Also some logic as 'and', 'or' don`t harm.
May be worth to stick to mondodb and it`s queries? Then put queries in separete module, so queries for different db can be written in future.
Universal queries approach is good, but less expressive.
We have some basic query methods (where, equals...). It`s enough for simply scenarios. Whan about to add some more?
How to get length of collection and not to get all data of it? Some kind of 'count' method would be needed.
There is 'contains' method for seek value in array. For simple search scenarios 'contains' in string method is absolutly needed.
Also some logic as 'and', 'or' don`t harm.
May be worth to stick to mondodb and it`s queries? Then put queries in separete module, so queries for different db can be written in future. Universal queries approach is good, but less expressive.