-
Notifications
You must be signed in to change notification settings - Fork 6
Flatte Commands
Sezer Ekinci edited this page Sep 5, 2017
·
3 revisions
Returns a firebase.database() object.
// flatte call
flatte.db().ref('app').once("value",function(snapShot){});
// firebase call
firebase.database().ref('app').once("value",function(snapShot){});Returns a firebase.database().ref function.
// flatte call
flatte.dbRef('app').once("value",function(snapShot){});
// firebase call
firebase.database().ref('app').once("value",function(snapShot){});Returns a firebase server timestamp object.
// flatte call
timestamp = flatte.dbTime();
// firebase call
timestamp = firebase.database.ServerValue.TIMESTAMP;Returns a firebase new id.
// flatte call
groupID = flatte.dbKey();
// firebase call
groupID = firebase.database().ref().push().key;Returns a clean json object. Removes #(hastag) properties of object.
groupData = flatte.cleanData(groupData);Executes "save/update/delete" actions. You can find detailed information at flatte.do
flatte.do([
{
ref: "app/contacts/contactID-1",
data: { firstName: "John", lastName: "Doe" }
}
]);We recommend you to think various complex scenarios and make some tests. Flatte Manifest Builder will help you to create a manifest and you can run your tests, easily
- Flatte is licensed under the MIT License - see the LICENSE.md file for details
Getting Started
Flatte Manifest
Predefined Templates
Usage
Flatte Manifest Builder