Using this method you can update existing records on the database. In the event that you attempt to update a record that does not exist, this method creates it for you.
But I got a exception below when I execute my test code.
com.orientechnologies.orient.core.exception.ORecordNotFoundException: The record with id '#-1:-1' was not found
There is no plan to support this in short term in the binary protocol, in the same way that we ?don't provide a Java API to do upsert, I'll forward this issue to a late version just to keep track in case of feature development on upsert.
http://orientdb.com/docs/last/PHP-recordUpdate.html In this page I see a word
But I got a exception below when I execute my test code.
my test code
It's a BUG? or I used in a wrong way? or the document is not newest?
and…… I found a issue https://github.com/orientechnologies/orientdb/issues/7326
Please update the document, Thank you