Let's say I have two classes: User and Profile.
Let's say I have linked Profile to User as follows:
CREATE PROPERTY User.profile EMBEDDED Profile (MANDATORY TRUE, NOTNULL TRUE)
How can I use record_create to insert a new User + Profile?
pyorient.exceptions.PyOrientCommandException: com.orientechnologies.orient.core.exception.OValidationException - The field 'User.profile' is mandatory, but not found on record: Profile{"name":John Doe}
pyorient.exceptions.PyOrientCommandException: com.orientechnologies.orient.core.exception.OValidationException - The field 'User.profile' is mandatory, but not found on record: Profile{Profile":[1]}
I couldn't find anything in the documentation or elsewhere showing the correct syntax for inserting an embedded record.
Let's say I have two classes: User and Profile. Let's say I have linked Profile to User as follows:
CREATE PROPERTY User.profile EMBEDDED Profile (MANDATORY TRUE, NOTNULL TRUE)
How can I use
record_create
to insert a new User + Profile?I have tried the following:
In both cases, I get errors like the following:
I couldn't find anything in the documentation or elsewhere showing the correct syntax for inserting an embedded record.
Thanks!