Mongoose Aggregate.prototype.lookup() API
The Mongoose Aggregate prototype.lookup() method of the Mongoose API is used to perform aggregation tasks. It allows us to perform left join the operation between the collection in the same database to filter out the documents based on requirements and conditions. Let us understand lookup() method u