[CSHARP-1152] How to get top 3 or n elements from an array in a record Created: 21/Dec/14  Updated: 05/Apr/19  Resolved: 04/Apr/15

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

Type: Task Priority: Blocker - P1
Reporter: Anurag Assignee: Unassigned
Resolution: Done Votes: 0
Labels: question
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

collection emp={
_id,
name,
education:[{_id,school:a},{_id,school:b},{_id,school:c},{_id,school:d}]
}

Now how do one get the first two schools for an employee??
MMTIA


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