[CSHARP-2659] Provide $sample aggregation operator Created: 28/Jun/19  Updated: 31/Mar/22

Status: Backlog
Project: C# Driver
Component/s: API
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Ivan Artemov Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: 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();


Generated at Wed Feb 07 21:43:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.