Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion database-next/read-and-write.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ function socialSingleValueRead() {
}

function writeNewPost_wrapped() {
// [START rtdb_social_write_fan_out]
const { getDatabase, ref, child, push, update } = require("firebase/database");

// [START rtdb_social_write_fan_out]
function writeNewPost(uid, username, picture, title, body) {
const db = getDatabase();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// 'npm run snippets'.

// [START rtdb_social_write_fan_out_modular]
import { getDatabase, ref, child, push, update } from "firebase/database";

function writeNewPost(uid, username, picture, title, body) {
const db = getDatabase();

Expand Down