Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30669

Implement field comparison in MongoDB

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2021.x
    • Component/s: Core MongoDB

      Description

      Since MongoDB 3.6 and the introduction of the new operation "expr" https://docs.mongodb.com/v4.4/reference/operator/query/expr/ it's possible to write queries with field comparison

      For example

      dc:format = dc:language
      

      would betranslated into

      {"$expr": {"$eq": ["$dc:format", "$edc:language]}}
      

      We would need the support for the operators =, <>, >, <, >= and <=

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tmartins Thierry Martins
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: