Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to query mongodb with DBRef

Hello,

I have a database structure for Collection1 with a field with dbref like this:

 

"field_name" : DBRef("Collection2", ObjectId("5c3e25aaf1a79a001f1dbb08"), "database_name")

 

 

I want to get only the ObjectId of the field_name with tMongoDBInput but I can't do it.

 

With MongoShell, I can do it with this request :

db.Collection1.find({},{"Collection2.$id":1})

 

Anyone has any idea? Thanks.

Labels (3)
1 Reply
Anonymous
Not applicable
Author

Hello,

Are you able to use the tMongoDBRow component to run a simple command like the following: "db.TalendTest.find()"?

Best regards

Sabrina