# Joining Collections in MongoDB with .NET Core and an Aggregation Pipeline

DevFeed: [Joining Collections in MongoDB with .NET Core and an Aggregation Pipeline](<https://devfeed.tech/articles/joining-collections-in-mongodb-with-net-core-and-an-aggregation-pipeline-21813.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2022/03/joining-collections-mongodb-dotnet-core-aggregation-pipeline/>)

Author: Nic Raboy

Published: 2022-03-02T14:00:00Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [net core](<https://devfeed.tech/topics/net-core.md>), [CRUD](<https://devfeed.tech/topics/crud.md>)

Tags: [atlas](<https://devfeed.tech/tags/atlas.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [nosql](<https://devfeed.tech/tags/nosql.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [requirements](<https://devfeed.tech/tags/requirements.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

This tutorial explains how to join data from two MongoDB collections in a .NET Core application using aggregation pipelines. It uses a MongoDB Atlas cluster, the sample_mflix database, the movies collection, and a custom playlist collection.

## Source excerpt

If you've been keeping up with my .NET Core series on MongoDB, you'll remember that we explored creating a simple console application as well as building a RESTful API with basic CRUD support. In both... The post Joining Collections in MongoDB with .NET Core and an Aggregation Pipeline appeared first on MongoDB.