Closed creisle closed 5 years ago
It also worth nothing that I can create this record using the same class schema successfully when done though the db console bypassing orientjs
Hi @creisle
the main problem is on the wired protocol. OrientJS when serializing number uses Long
java type, but in this case the property is integer. And that explains the class cast exception. OrientDB
should automatically convert to the declared type on the schema. I've provided a fix. It is on testing now. If the tests passes it will be available in the next release
Thanks
Enrico
Hi @creisle
the fix has been merged. It will be available in the next OrientDB 3.0.22 release
Thanks
Great! Thank you :)
Hi @wolf4ood,
I just tried this is orientdb 3.0.22 and the error is still there
System information
Orientjs version: 3.0.5 orientdb version: 3.0.20 node version: v10.13.0
Expected Behaviour
The insert operation to suceed
Actual Behaviour
Throws this error
Minimum Reproducible Example
I think this has something to do with the "MIN" constraint