Adds a variable in a collection as document with a unique name.
The collection where to store the variable.
The variable to write.
Optional
The variable where to store the result.
Adds a variable in a collection as document with a unique name.