Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11558

Comment on: "manual/reference/operator/aggregation/project"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Environment:
    • Last comment by Customer:
      false

      Description

      I really need to combine somehow the $project aggregation with the $lookup collection.
      Basically I'm returning every projects from the database, and I'm using the $project aggregator there to limit the field numbers. And i'm using a $lookup to assign the media files to these project, then filter the media fields, but I just can't find the information how can i do this. Nothing on google, stackoverflow - also no response - simply just nothing. Am I missing the logic or something? Actually joining the medias with the projects are pretty easy, but filtering out the not neccessary fields is seems impossible to me in mongoDB.

        Attachments

          Activity

            People

            Assignee:
            stennie Stennie Steneker
            Reporter:
            xgen-internal-docs Docs Collector User
            Participants:
            Last commenter:
            Stennie Steneker Stennie Steneker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              3 years, 27 weeks, 5 days ago
              Date of 1st Reply: