Skip to main content

Algolia index

An extension for syncing data for Algolia

GCP Secret Manager setup:

Navigate to Google Secret Manager and add a new secret Secret Name: algolia

Secret Value:



const extensionBody: AlgoliaIndexBody = async ({ row, db, change, ref }) => {
// you can modify the data passed in the row before syncing

return {
// a list of string of column names that would be synced to algolia
fieldsToSync: [],
// object of data to sync, usually the row itself
row: row,
// algolia index to sync to
index: "",
// algolia object ID, is one possible choice