• Adds a variable in a collection as document with a unique name.

    Parameters

    • collectionName: string

      The collection where to store the variable.

    • variable: Variable

      The variable to write.

    • Optional callbackStateVariable: Variable

      The variable where to store the result.

    Returns void