I'm generating a Json.
But I have the following situation:
I have a contact record that can belong to the same company. That is, I can have two people registered in a single company.
How do I load these contacts into my json?
I'm doing the following:
Contato.findById(contato.Cliente.id,function(err, contatos) {
//aqui carrego as informacoes.
But it only carries the last registered contact, and I need to bring all.