Firestore Sweet

Firestore Sweet

  • Tutorial
  • API
  • Github

›FieldValue

Tutorial

  • Getting Started

Read

  • get
  • on
  • ref

Write

  • add
  • set
  • upsert
  • update
  • delete

FieldValue

  • inc
  • del
  • ts
  • union
  • remove

Atomic & Bulk

  • tx
  • batch

union

db.union adds non-existent elements to an array field.

add elements to an array

await db.update({favorites: db.union("tomato", "potate", "grape")}, "users", "Bob")
// equivalent firestore
fs.collection("users").doc("Bob").update({favorites: firebase.firestore.FieldValue.arrayUnion("tomato", "potate", "grepe")})
← tsremove →
  • add elements to an array
Firestore Sweet
Docs
Getting StartedAPI Reference
Who's Using Firesotre Sweet ?
WARASHIBEALISCHOOLcrypvoVePress
Where to Find Me ?
ALIS BlogGitHubStar
Follow @ocrybit
Copyright © 2020 Tomoya Nagasawa