Hi there,
I am wondering if there is a way to return an updated object after an update.
As an example, I could make an update whith this kind of request :
UPDATE default d
USE KEYS 'TEST::E'
SET c.arrayObjLvl2 = ARRAY_APPEND( IFMISSING(c.arrayObj, []),
{ 'objectLvl2Id': 'objectLvl2::1',
'name': 'Object'
}
)
FOR c IN d.arrayObjLvl1 WHEN c.objLvl1 = 'objLvl1::1' END RETURNING d.*;
In this example, I would like to get as result the object I have successfully added. I don’t know the path of the object so I cannot replace d.* by d.arrayObjLvl1[x] etc…
Is someone have an idea ?