Skip to content

Commit 7349872

Browse files
committed
Adding missing imports in the code
1 parent 509769a commit 7349872

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

snippets/database-next/read-and-write/rtdb_social_write_fan_out.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// 'npm run snippets'.
66

77
// [START rtdb_social_write_fan_out_modular]
8+
import { getDatabase, ref, update, push, child } from "firebase/database";
9+
810
function writeNewPost(uid, username, picture, title, body) {
911
const db = getDatabase();
1012

0 commit comments

Comments
 (0)