$or should accept a proper object besides "x.y" for embedded-document filtering

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: JavaScript, Querying
    • None
    • Query
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      $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).

            Assignee:
            Backlog - Query Team (Inactive)
            Reporter:
            Cristián
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: