-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
Query Optimization
Instead of having commands for finding, creating, updating, and deleting documents and also a pipeline for aggregating documents, why do not we have a single pipeline where one can also add $create, $update, $delete stages and we call this generic pipeline Query Pipeline?
This will give powerful query expressions such as create, updating, or deleting based on previous stages results. Also, it will shift a lot of application layer logic to database layer.