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

Add method to stitch support lib to return list of fields in a query

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution

      We'd like a method exposed in the stitch support library that returns a list of fields in a given query.

      i.e. given

      {
        $and: [
          { $or: [ { field1: { $lt : 10 }, { field2: { $in: [50, 30] } ] },
          { $or: [ { field3: "abc" }, { field2: { $gt : 5 } ] }
        ]
      }
      

      it would return

      [field1, field2, field3]

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            kiro.morkos@mongodb.com Kiro Morkos
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: