Shouldn't the $ character be also in var declaration (let $doorOne = ....)?
Dne úterý 15. září 2015 16:59:41 UTC+2 Jonas Laux napsal(a): > > I'm trying to add IDs from a inserted column to another inserted column in > a Transaction. I tried like this: > > begin > let doorOne = INSERT INTO doors SET color = green > let doorTwo = INSERT INTO doors SET color = blue > let car = INSERT INTO Cars SET doors = [$doorOne , $doorTwo] > commit retry 100 > return $car > > I get: > > Unhandled rejection OrientDB.RequestError: The field 'Cars.doors' has been > declared as LINKSET but the value is not a record or a record-id > > I also tried to update it afterwards in the Transaction, but this won't > work either (i think because the car is not created yet, so nothing to > update) and i dont want to do it in two different calls, if there is a way > to do it in one Transaction. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
