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

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

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Environment:

      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.

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

              Created:
              Updated:
              Resolved:
              6 years, 2 weeks, 3 days ago