ReadSimpleData()

Description

This function reads the document at a particular location, given by the collection it is under and the document name.

Syntax

ReadSimpleData(collectionName, documentName)
ArgumentDescription

collectionName

The name of the collection in the root of your database where you want to read the document. This must be a String.

documentName

The Name of the Document you want to read. This must be a String.

Returns

Number   //a positive integer you can note down

Example Implementation

var readId = ReadSimpleData("users", "Peter")

This requests the server to look into "users/Peter" for data.

the callback_ReadSimpleData() actually returns the data.

Last updated