Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@adrienjoly
Created December 5, 2019 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrienjoly/b931cd434e60b18fa7f94218b86f2afd to your computer and use it in GitHub Desktop.
Save adrienjoly/b931cd434e60b18fa7f94218b86f2afd to your computer and use it in GitHub Desktop.
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