You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working with the arangodb java driver trying to do bulk operations, we're encountering that while the driver will allow us to update a single document as a json string (Key, Js string):
val js = ObjectToJson(obj).toString
db.collection.updateDocument(String,js)
it will not allow us to update a set of documents as Map(String,json string):
val js = ObjectToJson(obj).toString
db.collection.updateDocuments(Map(String,String))
Similarly, we are trying to do bulk operation on replaceDocuments
It allows,
val js = ObjectToJson(obj).toString
db.collection.replaceDocument(String,js)
but not,
db.collection.replaceDocuments(Map(String,String))
The text was updated successfully, but these errors were encountered:
Hi,
the methods updateDocuments/replaceDocuments work with Collection<String> in the case of working with raw Json. You have to build the _key of the document - you want to update - in the document. (see here for example)
But beside that I find a bug in this methods, so thanks for reporting. I fixed it. You can test it with current snapshot version 4.1.8-SNAPSHOT. I will release a new version (4.1.8) within this week.
Working with the arangodb java driver trying to do bulk operations, we're encountering that while the driver will allow us to update a single document as a json string (Key, Js string):
val js = ObjectToJson(obj).toString
db.collection.updateDocument(String,js)
it will not allow us to update a set of documents as Map(String,json string):
val js = ObjectToJson(obj).toString
db.collection.updateDocuments(Map(String,String))
Similarly, we are trying to do bulk operation on replaceDocuments
It allows,
val js = ObjectToJson(obj).toString
db.collection.replaceDocument(String,js)
but not,
db.collection.replaceDocuments(Map(String,String))
The text was updated successfully, but these errors were encountered: