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

Support IEnumerable.TypeOf<>() in find() projections

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • None
    • None
    • LINQ3

    Description

      Turn a LINQ3 projection such as: 

      players.find(p => true, p => new { SoccerGames = p.games.TypeOf<Soccer>() })

      into something like:

      db.players.find( {}, { games: { $elemMatch: { _t: "Soccer" } } } )

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jasperli@sortspoke.com Jasper Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: