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

Provide $sample aggregation operator

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • API
    • None
    • Fully Compatible

    Description

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

       

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            zoxexivo@gmail.com Ivan Artemov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: