Details
-
Improvement
-
Resolution: Won't Do
-
Minor - P4
-
None
-
None
-
None
-
Query
Description
$or accepts as filter an array of objects in the "document.attribute" style, which makes it impossible to build a dynamical query.
It should be a proper object in the form of "document:
{attribute1: 'value1', attribute2: 'value'}". It seems cleaner, in line with js native form, and also allows to programmatically create a dynamic query (specially if you don't have a fixed set of attributes to search, which seems logical in a schema-less model).