我想用arangodb rest api和spring-cloud-feign構建某種類型的存儲庫。ArangoDB創建/更新沒有新
當我執行獲取時,一切都很好,我收到實體,因爲它應該,我甚至可以映射_key到我的財產。
我的問題是,當我嘗試執行創建/更新(後/補丁),如果我添加查詢參數爲returnNew我收到了新的對象,但裏面新。
如:http://localhost:8529/_db/testDB/_api/document/orderCollection?returnNew=true
{
"_id": "orderCollection/ERGDEF34",
"_key": "ERGDEF34",
"_rev": "_UqhLPC----",
"new": {
"_key": "ERGDEF34",
"_id": "orderCollection/ERGDEF34",
"_rev": "_UqhLPC----",
"description": "descriptionxpto",
"amount": "5000000000000",
"operation": {
"id": "1",
"description": "operation description",
"status": "Completed"
},
"creationDate": [
2017,
3,
13,
15,
23,
1,
546000000
]
}
}
有沒有辦法送新酒店外的新對象?