# 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](<https://devfeed.tech/topics/net.md>), [Collections](<https://devfeed.tech/topics/collections.md>)

Tags: [aggregation](<https://devfeed.tech/tags/aggregation.md>), [api](<https://devfeed.tech/tags/api.md>), [application](<https://devfeed.tech/tags/application.md>), [atlas](<https://devfeed.tech/tags/atlas.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [collection](<https://devfeed.tech/tags/collection.md>), [collections](<https://devfeed.tech/tags/collections.md>), [console](<https://devfeed.tech/tags/console.md>), [core](<https://devfeed.tech/tags/core.md>), [crud](<https://devfeed.tech/tags/crud.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [join](<https://devfeed.tech/tags/join.md>), [model](<https://devfeed.tech/tags/model.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [movies](<https://devfeed.tech/tags/movies.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [network](<https://devfeed.tech/tags/network.md>), [nosql](<https://devfeed.tech/tags/nosql.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>)

## AI overview

The tutorial introduces joining data from MongoDB collections with aggregation pipelines in a .NET Core application. Its setup uses MongoDB Atlas, .NET Core 6+, the sample data sets, the `sample_mflix` database and `movies` collection, plus a custom `playlist` collection. The excerpt highlights that relevant fields and values across the collections are strings, but does not include the pipeline implementation or its results.

## 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.