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

remove

db.remove removes existent elements from an array field.

remove elements from an array

await db.update({favorites: db.remove("tomato", "grape")}, "users", "Bob")
// equivalent firestore
fs.collection("users").doc("Bob").update({favorites: firebase.firestore.FieldValue.arrayUnion("tomato", "grape")})
← uniontx →
  • remove elements from 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