I have two different classes: Record and Location. Record has a location property that links to Location class.
I want to create a record with a new location in one statement pretty much like this:
insert into record content {location:{name:"EDR"}}
I was hoping this would create new location with name EDR and link it to location property of record but it throws this exception.
com.orientechnologies.orient.core.exception.OValidationException: The field 'record.location' has been declared as LINK but the value is not a record or a record-id
Can anyone help me please?