Hi there
I’m trying to get an updated data after saving record.
The page I’m working on let the user add a record to an index, and should retrieve the newly indexed record to display it on the page with the previously indexed ones.
await myIndex
.saveObject(object, {autoGenerateObjectIDIfNotExist: true})
.wait()
.then(async () => {
const objects = await myIndex.browseObjects({
facetFilters: [`some_field:${some_value}`]
})
console.log({
objects
})
})
Unfortunately, even though I can see the new record in the Algolia dashboard, the objects
inside then
are not updated.
What am I doing wrong ? I hope you can help me