Add $of for iterating over object keys

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Query
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In many languages you have the ability iterate over objects in the same way as you iterate arrays. In ES6 the simple example is for...of where its equivalent for array is for...in

      https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/for...of

      we already have $in for iterating our query across an array, could we add $of to do the same against objects in a document?

            Assignee:
            Backlog - Query Team (Inactive)
            Reporter:
            daniel.morrison#1
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: