Skip to content

Arango query is flattening nested attributes #514

Closed
@Gajanana

Description

@Gajanana

I have document as below

{
"att1": 32,
"att2": 36,
"properties" :{
"att3" : "str1",
"att4": "str2"
}

I am passing type as BaseDocument.class in arango query

<T> ArangoCursor<T> query(String query, Class<T> type, Map<String, Object> bindVars, AqlQueryOptions options);

Earlier in 6.x . retrieving att3 was done as below

(String) ((HashMap<String, Object>)baseDocument.getAttribute("properties")).get("att3"))

Now in 7.X basedocument is flattened in returned basedocument and I have to retrieve att3 as below whereas i was expecting it to work as before matching my arango document structure

(String) (baseDocument.getAttribute("att3"))

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions