Ring query using Mongoose

Asked

Viewed 31 times

0

Good morning, I need to carry out a query by changing the data of the object in Mongoose but I have not obtained success in finding the internal methods that do this and both $Facet and subpipeline do not satisfy what I am looking for.

I have an object as follows:

{
    Campo1,
    campo2,
    campo3:{
        objetoid,
        arrays:[{
           id_outhertable,
        }
 }

need to populate the objects inside the array with the real object in another table, this with their respective fields in another 'column', and as if that were not enough, there will be 2 queries, the latter using information from the field1 and id_outhertable.

I do not know if I was clear, I tried to be as clear as possible otherwise I apologize.

  • blz.. post an example of Collection ai.. from what I understand you want to change the arrays with the main search in the field1

  • This is an example of the colection, of course I omitted data and the types I understood that you would draw, as the Dict and array.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.