nassim hajjaji
nassim hajjaji

Reputation: 1

Foxx ArangoDB update data

any one who used foxx and arango I want to update a document in a collection Inside post end point. I'm new to arango I used collection.save(...) , to insert data I thought save() will update too if the given data containt the filed "_key" but When I test nothing is getting returned ! Any help please !

Upvotes: -2

Views: 87

Answers (1)

pavelsevcik
pavelsevcik

Reputation: 514

save is just for inserting data as insert is an alias for save

for updating your data you need use collection.update(selector, data) method where selector can be document-key or document-handle

Upvotes: 1

Related Questions