MCPcopy Index your code
hub / github.com/angular/angularfire / getRef

Function getRef

src/compat/database/utils.ts:26–30  ·  view source on GitHub ↗
(database: firebase.database.Database, pathRef: PathReference)

Source from the content-addressed store, hash-verified

24 * @param pathRef - Database path, relative or absolute
25 */
26export function getRef(database: firebase.database.Database, pathRef: PathReference): DatabaseReference {
27 // if a db ref was passed in, just return it
28 return isFirebaseRef(pathRef) ? pathRef as DatabaseReference
29 : database.ref(pathRef as string);
30}
31
32export function checkOperationCases(item: FirebaseOperation, cases: FirebaseOperationCases): Promise<void> {
33 if (isString(item)) {

Callers 2

listMethod · 0.90
objectMethod · 0.90

Calls 2

isFirebaseRefFunction · 0.85
refMethod · 0.80

Tested by

no test coverage detected