Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2659

Provide $sample aggregation operator

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API
    • Labels:
      None
    • Fully Compatible

      Please, provide $sample aggregation operator, that not exists now

       

      var mentions = await _context.For<MentionEntity>()
       .Aggregate()
       .Sample(count)
       .Project(x => new { x.Id })
       .ToListAsync();

            Assignee:
            oleksandr.poliakov@mongodb.com Oleksandr Poliakov
            Reporter:
            zoxexivo@gmail.com Ivan Artemov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: