Last active
April 30, 2022 13:43
-
-
Save Yudhajitadhikary/62444e490968a8f657c24520dcf46c2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const algoliasearch=require('algoliasearch') | |
const getWriteClient=(name)=>{ | |
// API keys below contain actual values tied to your Algolia account | |
const client = algoliasearch(<Application Id>,<Admin API Key>) | |
return client.initIndex(name) | |
} | |
module.exports={ | |
getWriteClient | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment