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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    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

            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5 years, 33 weeks, 3 days ago