0.0.13 • Published 4 years ago

firestore-manager v0.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

firestore-manager

A simple set of utilities for managing Firestore. Wraps the offical firestore-admin package. Aimed to be a dev utility used within a local node environment and not for use in production. Not an official package.

Setup

Install using

    npm install firestore-manager --save

Generate a service account key and save it in serviceaccount.json in the root folder. This file must be kept secure.

Usage

Import into project

const fm = require("firestore-manager");

Call functions with the paths specified using forward slash separators

fm.MoveCollection("mycollection/mydocument/mysubcollection","mycollection/mydocument/mynewcollection"); fm.CopyCollection("oldcollection","newcollection"); fm.DeleteCollection("collectionToDelete");

Notes

Functions return promises. Not designed for large batch operations.

License

MIT License

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago