Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1005

String query predicate normalization should put field name first

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: None

      When roundtripping a query in Core, this happens:

      Input: left < $0 AND right > $1 AND top < $2 AND bottom > $3
      Output: {{3460.57129 > left and 1460.57141 < right and 3460.57129 > top and 1460.57141 < bottom }}

      I would think that reading it like property < some_value is more readable as your mental model normally starts from the property name. Right now, I have to go through several mental hoops to reason about the query output from Core.

      Would it be possible to reverse the predicate description so property names are put first, like this:

      left < 3460.57129 and right > 1460.57141 ...

            Assignee:
            Unassigned Unassigned
            Reporter:
            christian.melchior@mongodb.com Christian Melchior (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: