• Writes a variable in a collection as document.

    Parameters

    • collectionName: string

      The collection where to store the variable.

    • variableName: string

      The name under which the variable will be saved (document name).

    • variable: Variable

      The variable to write.

    • Optional callbackStateVariable: Variable

      The variable where to store the result.

    Returns void