Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1945

Allow a generic to be provided for the cursor returned from aggregate

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Rust Drivers

      User request: https://github.com/mongodb/mongo-rust-driver/issues/1098

      I propose we make this behavior opt-in by adding a with_type method to the Aggregate action. I believe this is the first request we've had for this behavior in the ~3 years since introducing serde integration, and more generally the flexibility of the data types returned from an agg pipeline makes Document a reasonable default. Adding an outright generic would require a type label for all calls to aggregate.

            Assignee:
            isabel.atkinson@mongodb.com Isabel Atkinson
            Reporter:
            isabel.atkinson@mongodb.com Isabel Atkinson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: