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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major - P3
    • Resolution: Works as Designed
    • None
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 18 weeks, 1 day ago