Function get_ref_of_root

Source
pub fn get_ref_of_root(
    db: &Database,
) -> Result<DatabaseReference, FirebaseError>
Expand description

See get_ref documentation. Basically gains a reference to the root of your database, like (but not equivalent I don’t think) to calling get_ref with a path of "" or "/".

§Examples

use firebase_js_sys::database::get_ref_of_root;
 
let db_ref = get_ref_of_root(&db, "/");