SetSimpleData()
Description
This function creates or overwrites a document in the database. If the collection does not exist, the collection will be created. If the document does not exist, it will be created.
Syntax
Argument
Description
collectionName
The name of the collection in the root of your database where you want to edit a document. This must be a String.
documentName
The name of the document you are creating/updating. This must be a String.
mapStruct
The data you want to store at this location. This must be a Struct of key-value pairs of your data.
Returns
Example Implementation
This requests the server to create this struct as a document with name "lilshake"
the callback_SetSimpleData() actually gives the confirmation of the write.
Last updated