hi:
I query via NIQL statements:
select
OBJECT_CONCAT({"adminId": adm},{"logs":logs})
FROM lesson as logs
JOIN lesson AS adm ON KEYS logs.adminId
return:
[
{
"$1": {
"adminId": {
"createdTime": 1534333674040,
"departmentId": "Department::1534333631008::japq",
"isSuper": true,
"mobile": "test Admin",
"name": "test Admin",
"password": "test Admin",
"type": "Admin",
"username": "test Admin"
},
"logs": {
"adminId": "Admin::1534333674040::468r",
"classId": "Class365::1534142979269::e3wm",
"createdTime": 1534405376506,
"description": "this is a first desc",
"type": "AdminLogs"
}
}
}
]
I want to replace logs object adminId property with adminId object.
like this:
[
{
"logs": {
"adminId": {
"createdTime": 1534333674040,
"departmentId": "Department::1534333631008::japq",
"isSuper": true,
"mobile": "test Admin",
"name": "test Admin",
"password": "test Admin",
"type": "Admin",
"username": "test Admin"
},
"classId": "Class365::1534142979269::e3wm",
"createdTime": 1534405376506,
"description": "this is a first desc",
"type": "AdminLogs"
}
}
]
how does it?
thanks for your reply.
best regards!