How can I replicate information from a document when creating a new document.

Resolved

I have a collection called audit models, this collection has an attribute that stores a list of references to a subcollection called task models, which belongs to this collection of audit models.

What I want is to make a copy to a collection called audits and also pull these tasks.

However, I am not able to pull this list of task references, I need it to make a query and copy them too.

Detail, this reference list is not mandatory, but it was the first idea I had to make this copy.

Does anyone have any idea how I can do it?

2
9 replies