How to use the firestore-export-import.backup function in firestore-export-import

To help you get started, we’ve selected a few firestore-export-import examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ffxiv-teamcraft / ffxiv-teamcraft / tools / firestore / db.js View on Github external
async function fetchLists() {
  const data = await firestoreService
    .backup('lists');
  fs.writeFileSync(backupFile, JSON.stringify(data.lists));
}
github GoogleChromeLabs / sample-pie-shop / src / server / get-data.js View on Github external
export function getProduct(productUrl) {
  if (productData) {
    return findUrl(productData, productUrl);
  } else {
    fei.backup('products').then((data) => {
      productData = data.products.data.items;
      return findUrl(productData, productUrl);
    });
  }
}
github GoogleChromeLabs / sample-pie-shop / src / server / get-data.js View on Github external
export function getHomeData() {
  if (homeData) {
    return homeData;
  } else {
    fei.backup('home').then((data) => {
      homeData = {
        categories: data.home.categories.data,
        products: data.home.products.data,
      };
      return homeData;
    });
  }
}
github GoogleChromeLabs / sample-pie-shop / src / server / get-data.js View on Github external
export function getProducts(category) {
  if (productData) {
    return filterCategory(productData, category);
  } else {
    fei.backup('products').then((data) => {
      productData = data.products.data.items;
      return filterCategory(productData, category);
    });
  }
}

firestore-export-import

NPM package for backup and restore Firebase Firestore

MIT
Latest version published 10 months ago

Package Health Score

58 / 100
Full package analysis