Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4852

Consider removing type cases that prevent direct type recursion

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 4.3.0, 4.11.0
    • Component/s: TypeScript
    • Not Needed

      Description

      The dot notation feature now has a recursion depth limiter which should allow us to loosen the conditions for recursion. We currently block nested paths from being built if the type is a replica of the parent, but now with the depth limitation we can allow those to recurse and they'll be stopped at the permissible depth.

      Unknowns

      How would this impact compilation performance? Likely greatly, that would need to be investigated before deciding to move forward with lifting this limitation.

            Assignee:
            Unassigned Unassigned
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: