aggregate TypeScypt type is incorrect

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.5.9
    • Component/s: TypeScript
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Method toArray of an AggregationCursor<T> should not return Promise<T[]> but Promise<unknown[]> since aggregation can (and often do) transform documents.

              Assignee:
              Unassigned
              Reporter:
              Jérôme Senot
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: