Firestore Sweet

Firestore Sweet

  • Tutorial
  • API
  • Github

›Write

Tutorial

  • Getting Started

Read

  • get
  • on
  • ref

Write

  • add
  • set
  • upsert
  • update
  • delete

FieldValue

  • inc
  • del
  • ts
  • union
  • remove

Atomic & Bulk

  • tx
  • batch

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})
← refset →
  • add doc with auto-generated id
Firestore Sweet
Docs
Getting StartedAPI Reference
Who's Using Firesotre Sweet ?
WARASHIBEALISCHOOLcrypvoVePress
Where to Find Me ?
ALIS BlogGitHubStar
Follow @ocrybit
Copyright © 2020 Tomoya Nagasawa