Firebase Connection methods
The Firebase connection object represent a connection instance to a configured Firebase cloud database. The following methods are exposed by the connection object to interact with remote data.
Connect
Returns a virtual Firebase database instance that can be further used to manipulate remote data.
Create
This method will insert a new object in the specified collection. The collection must exist. The object can be expressed in standard notation like { a = "hello" }. Xenioo will translate it to the correct Firebase document format.
Delete
Deletes a document with the specified Id from the specified collection.
Update
Updates a document with a specific Id with the new object instance. The remote object will be completely replaced by the new instance. Remote object properties that are not in the current object instance will be removed by the update.
List
This method will return a list of all the objects that are currently stored in the specified collection.
Get
This method will return a single object instance from the database corresponding to the id specified in documentid.
Last updated