Skip to main content
Version: v10.7.1

getRealtimeItem

A Realtime Database child as the adapter returns it. An object child is spread with its key as __key . A primitive child (a number, string or boolean) cannot hold a key, so it comes back as { __key, __value } .


Import
import { getRealtimeItem } from "@hyper-fetch/firebase-admin"

Parameters​

getRealtimeItem(snapshot: DataSnapshot)
Parameters
NameTypeDescription
snapshot
DataSnapshot

Returns​

any