Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4792

Refactor existing embedded matchers to have an operator-value API

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Query
    • Labels:
      None

      Existing embedded matchers take the entire specification (both operator and the value being matched against) as the value. The operator then is ignored, because the matcher specifies operator behavior. And the value must be retrieved out of the specification in each matcher separately, which means validations for specification shape must also be copied into every matcher, etc.

      This ticket is to change the API of embedded matchers to clearly take the operator on one hand and the value of the operator on the other.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: