add
add
works the same as firestore add
but with the same syntax as the sweetened get
.
add doc with auto-generated id
await db.add({name: "Bob", age: 30}, "users")
// equivalent firestore
await fb.collection("users").add({name: "Bob", age: 30})