Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7770

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • JavaScript, Querying
    • 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).

      Attachments

        Activity

          People

            backlog-server-query Backlog - Query Team (Inactive)
            cmelendez Cristián
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: