#community-help

Problem with Update Query using Typesense NPM Package

TLDR SGM encountered an error with an update query using typesense npm package. Jason confirmed the issue was resolved in version v01.7.2.

Powered by Struct AI
2
1mo
Solved
Join the chat
Oct 13, 2023 (1 month ago)
SGM
Photo of md5-2f94b63d050dad6ced4a85316a658c61
SGM
07:56 PM
Hi all, is anyone able to perform an "update by query" on a document using javascript?

I'm using the typesense npm package and following the documentation, but I get an error: RequestMalformed: Request failed with HTTP code 400 | Server said: For update, the id key must be provided. This is probably because the documentation species to use .documents() without anything in the parenthesis....
Did I misunderstand this?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:40 PM
To close the loop on this, this is fixed in v01.7.2 of typesense-js