How to search similar in both parent collection and its child relation collection

How can I search for similar text value in both parent collection and its child relation collection?

I have two collection like Product and Category. I want to search for product name and its relative category name. How can I do it with aggregation?

Hi @Sai_Main and welcome to the MongoDB Community forums. :wave:

Can you provide some sample documents that has the data you’re working with? Please keep them as small as possible and make sure to use the Preformatted text block (click on the </> icon in the tool bar) when pasting the documents into your post (if pasted into regular text, the quotes get converted to fancy quotes and then have to be converted back to regular quotes by the person trying to help you).

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.