MCPcopy Create free account
hub / github.com/firebase/firebase-tools / encodeFirestoreValue

Function encodeFirestoreValue

src/firestore/encodeFirestoreValue.ts:59–67  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

57}
58
59export function encodeFirestoreValue(data: any): Record<string, any> {
60 return Object.entries(data).reduce(
61 (acc, [key, val]) => {
62 acc[key] = encodeHelper(val);
63 return acc;
64 },
65 {} as Record<string, any>,
66 );
67}

Callers 3

makeFirestoreValueMethod · 0.90
encodeHelperFunction · 0.85

Calls 1

encodeHelperFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…