2.0.0 • Published 6 years ago

algolia-firestore-sync v2.0.0

Weekly downloads
17
License
MIT
Repository
github
Last release
6 years ago

algolia-firestore-sync

Simple helper for syncing indices to Firestore on Firebase

Usage

const functions = require('firebase-functions');
const algoliasearch = require('algoliasearch');
const algoliaSync = require('algolia-firestore-sync');

const algolia = algoliasearch(functions.config().algolia.appid, functions.config().algolia.adminkey);
const index = algolia.initIndex('ingredients');

exports.syncIngredients = functions.firestore.document('/<CollectionName>/{id}').onWrite(
  (change, context) => {
    return algoliaSync.syncAlgoliaWithFirestore(index, change, context)
  }
);
2.0.0

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago