June 2018
Beginner to intermediate
394 pages
9h 2m
English
RuleDataSnapshot is accessible from data and newData predefined variables. RuleDataSnapshot offers a variety of methods to perform operations on. They are enlisted as follows:
| Method name | What it does |
| Child() | Child() returns a RuleDataSnapshot at the specified path. |
| parent() | It will return a parent node from the current node. |
| hasChild(childpath) | This method will return true or false on a specified child existence. |
|
hasChildren([children]) |
This method will return true or false on a specified array of children existence. |
|
exists() |
This method will return true or false on RuleDataSnapShot whether it contains any data. |
|
getPriority() |
It will return the priority data from the snapshot. |
Read now
Unlock full access