pub fn get_ref_of_root( db: &Database, ) -> Result<DatabaseReference, FirebaseError>
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 "/".
""
"/"
use firebase_js_sys::database::get_ref_of_root; let db_ref = get_ref_of_root(&db, "/");