Compass lookup different than video

This is what I get in Compass for $lookup:
/**

  • from: The target collection.
  • localField: The local join field.
  • foreignField: The target join field.
  • as: The name for the results.
  • pipeline: The pipeline to run on the joined collection.
  • let: Optional variables to use in the pipeline field stages.
    */
    {
    from: ‘string’,
    localField: ‘string’,
    foreignField: ‘string’,
    as: ‘string’
    }

Not as shown in the video.

@Rony_Tesler, there are two different ways of using $lookup as mentioned in this article and all those options are valid, for proper usage refer this documentation: $lookup (aggregation) — MongoDB Manual

2 Likes