While downloading all my data from algolia , I hav...
# community-help
n
While downloading all my data from algolia , I have been facing this issue from last couple of hours I am using browseObject method
k
Can you post the client code used?
n
Copy code
downloadData: () => {
        let hits = []
        index
            .browseObjects({
                query: '',

                batch: batch => {
                    hits = hits.concat(batch)
                },
            })
            .then(() => {
                console.log(hits)
            })
    }
k
I think
index
is not initialised properly. Try printing the value of
index
.
n
same index is being used for every other function like deleteObject. partialUpdateObjects ,etc but working fine.
k