Is it possible to change type of record? (original) (raw)

Is it possible to change the record type (with completion of mandatory fields)?
For example, when importing data, I can have information about the user's login. I will create a record for him and link it with other data. Subsequently, in a separate transaction, I download additional information about the user and add it to the original record. However, I would also like to update the record type so that it is clear from the type that all mandatory fields for the given type are filled out.

CREATE VERTEX TYPE PersonBasic; CREATE PROPERTY PersonBasic.login STRING (mandatory true, notnull true);

CREATE VERTEX TYPE PersonFull EXTENDS PersonBasic; CREATE PROPERTY PersonFull.displayName STRING (mandatory true, notnull true); CREATE PROPERTY PersonFull.email STRING (mandatory false, notnull true); CREATE PROPERTY PersonFull.nick STRING (mandatory false, notnull true);

CREATE VERTEX PersonBasic SET login = 'bobo';

-- create edge to created PersonBasic CREATE EDGE E1 FROM #10:3 TO #11:4;

-- change type to PersonFull somehow ??? UPDATE #11:4 SET displayName = 'Bob Sandwich', email = 'bobo@example.com', nick = 'Bobo';