Support Left Outer Joins

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • 3.7.1
    • Affects Version/s: None
    • Component/s: LINQ
    • None
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      example:

          var query = from p in Db.GetCompanyCollection<AwardProviderProduct>(companyIdentifier).AsQueryable()
                      join o in Db.GetGlobalCollection<Product>() on p.Sku equals o.Sku
                      where p.Reference[ProductReferenceType.AwardchoiceSource.ToString()] == "NORC"
                      select new AwardProviderProduct()
                      {
                        
                          Sku = p.Sku,
                        
                      };
      

      creates

      
      db['terryberry-AwardProviderProduct'].aggregate(
      [
      { "$lookup" : { "from" : "Product", "localField" : "Sku", "foreignField" : "Sku", "as" : "o" } }, 
      { "$unwind" : "$o" },
      { "$project" :
      {
           "Sku" : "$Sku"
      }
      }       
      ,
      {"$match" : { "Reference.AwardchoiceSource" : "NORC" }} ])
      
      

      The query does not work because of the seemingly useless unwind statement

      Unknown macro: { "$unwind" }

      ,

            Assignee:
            Robert Stam (Inactive)
            Reporter:
            Dan Cumings
            Votes:
            7 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: