Skip to content

a list of small tools for managing a firebase backend

License

Notifications You must be signed in to change notification settings

Mikkelet/firebase-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

firebase-helpers

a list of small tools for managing a firebase backend

batch_bulk.ts:

const snap = await collection("mycollection").get();
const docs = snap.docs
const batch = new BatchBulk()
for(const doc of docs){
  const newData = {}
  batch.set(doc.ref, newData)
  batch.update(doc.ref, newData)
  // etc...
}

await batch.commit()```

About

a list of small tools for managing a firebase backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published