Represent inclusions of missing fields in a consistent way

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      "[{$set: {a: 1, b:

      {c: 1 }

      }},"
      "{$project: {'a.x': 1, 'b.x': 1}},"
      "{$match: {a: 1, 'a.x': 1, 'b.x': 1, b: 1}}]"
       
      The graph currently encodes that "a.x" depends on "a" in $set, which is true, but it's not encoded in the graph that "set: a" made "a.x" missing. One option could be to create an empty scope for "a" with just <missing> and have "a.x" point to it

            Assignee:
            Unassigned
            Reporter:
            Henri Nikku
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: