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

LINQ join throws exception on the whole document projection

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.14.0
    • Affects Version/s: 2.2.4, 2.3.0-beta1
    • Component/s: Linq, LINQ3
    • Labels:

      I'm getting NotSupportedException ($project or $group does not support {document}) on very simple join statement:

      from s in collection1
      join r in collection2 on s.ForeignKey equals r.Id
      select s
      

      But everything works great when objects from another collection are projected.

      from s in collection1
      join r in collection2 on s.ForeignKey equals r.Id
      select r
      

      It seems that query translator can't parse document expression.

            Assignee:
            james.kovacs@mongodb.com James Kovacs
            Reporter:
            kreig Vyacheslav Stroy
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: