Embedding record from function in OrientDB
问题 I'd like to embed a record into another one using a function in OrientDB. I have a class called Backup. Here's it's definition: create class Backup extends V create property Backup.dateTime datetime create property Backup.record embedded V What I want to do is to call an OrientDB function, passing it an arbitrary @rid, and it will make a backup of that record for me. Here's what I tried so far: //function createBackup(id) var gdb = orient.getGraphNoTx(); var rec = gdb.command("sql", "select