Returns a Reference representing the location in the Database corresponding to the provided path.
If no path is provided, the Reference will point to the root of the Database.
Example
constdb = getDatabase();
// Get a reference to the root of the Database constrootRef = ref(db);
// Get a reference to the /users/ada node constadaRef = ref(db, "users/ada");
Optional path representing the location the returned Reference will point. If not provided, the returned Reference will point to the root of the Database.
Returns a
Referencerepresenting the location in the Database corresponding to the provided path. If no path is provided, the Reference will point to the root of the Database.Example