Skip to content

collection.updateDocuments ,collection. replaceDocuments not working for JSON strings #98

Closed
@divyajana21

Description

@divyajana21

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))

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions