I'm trying to build some sort of repositories with arangodb rest api and spring-cloud-feign.
When I perform a Get, everything is fine, I receive the Entity as it should and I can even map _key to my property.
My issue is when I try to perform a Create / Update (Post / Patch), if I add a query param for returnNew I receive the new Object, but inside new.
Eg: 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
]
}
}
Is there any way to send the new object outside the new property?