• Writes a field of a document.

    Parameters

    • collectionName: string

      The collection where to store the document.

    • documentName: string

      The name of the document where to write a field.

    • field: string

      The field where to write.

    • value: any

      The value to write.

    • Optional callbackStateVariable: Variable

      The variable where to store the result.

    • Optional merge: boolean = true

      Should the new field replace the document or be merged with the document?

    Returns void