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

How to get top 3 or n elements from an array in a record

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Blocker - P1 Blocker - P1
    • None
    • None
    • None

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            anuaquarius Anurag
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: