0
I need to load the data by joining two id
On a form I fill out my client with an ID. In another form I fill out other information and upload the customer ID. That is, both forms, send the same ID to the bank.
I need to generate a json that has the information of these two forms.
When I do:
Contact.findOne({$and: [{_id: contact.Client.id}, {_id: client.id}]},function(err, contacts) {
doesn’t work.