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

Improve support for TS recursive collection schema types

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.11.0
    • Affects Version/s: None
    • Component/s: TypeScript
    • Labels:
    • 3
    • Not Needed
    • Needed

      Currently, with the introduction of support for dot-notation type hinting in 4.3.0, we also introduced a limitation to any recursive collection schemas. This limitation was partially addressed in 4.3.1, which allows self-referential types to compile, but does not fix the issue of indirectly self-referential types (e.g. where A references B and B references A).

      There are other approaches we can take (see example here and here) to address the issue by limiting the depth of the recursion, and we may have to do this if it ends up affecting a significant number of users.

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            daria.pardue@mongodb.com Daria Pardue
            Bailey Pearson
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: