[SERVER-56150] How to lookup to another collection from different database Created: 17/Apr/21  Updated: 06/Dec/22  Resolved: 19/Apr/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Minor - P4
Reporter: Ashraf KM Assignee: Backlog - Triage Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Triage
Participants:

 Description   

Problem Description

How to lookup to another collection from different database

Steps to Reproduce

Hi
I have below example
1.)
DB: ABC
Collection name: testABC

2.)
DB: XYZ
Collection name: testXYZ

I want to write lookup query to testXYZ from testABC.

Can you help me out.

 



 Comments   
Comment by Edwin Zhou [ 19/Apr/21 ]

Hi Ashraf KM,

Thanks for your report. Please note that the SERVER project is for bugs and feature suggestions for the MongoDB server. As this ticket does not appear to be a bug, I will now close it. If you need further assistance troubleshooting, I encourage you to ask our community by posting on the MongoDB Developer Community Forums.

Kind regards,
Edwin

Comment by Ashraf KM [ 17/Apr/21 ]

I have tried this.

https://docs.mongodb.com/datalake/reference/pipeline/lookup-stage/
but did not work

Generated at Thu Feb 08 05:38:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.