Reputation: 1
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
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