Click here to Skip to main content
15,898,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Actually, I'm new is Azure Cosmos Db,I have a situation where I want get data from multiple collection.

Can anyone tell Is there any way to Join two documets or multiple collections.

thanks...

What I have tried:

I have tried self join itslef,but not able to join multiple colletions.
Posted
Updated 28-Nov-19 21:44pm
Comments
Maciej Los 24-Jun-19 7:43am    
What have you tried till now?

Hi,

I have used Cosmos DB in one of my project and I am using Mongo DB API. I was able to join two collections in that. If you are also planning to use Mongo DB API then here are the steps to follow :-

1) Enable feature called "Aggregation Pipeline"

The aggregation pipeline is a framework for data aggregation modeled on the concept of data processing pipelines. Documents enter a multi-stage pipeline that transforms the documents into aggregated results.

2) For using aggregation go through https://www.tutorialspoint.com/mongodb/mongodb_aggregation.htm
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900