Created
December 5, 2019 15:10
-
-
Save adrienjoly/b931cd434e60b18fa7f94218b86f2afd 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
allHits=[]; | |
algoliaClient | |
.initIndex(indexName) | |
.browseAll() | |
.on('result', ({hits}) => allHits.push(...hits)) | |
.on('end', () => console.log(allHits)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment