Open dmarcelino opened 9 years ago
I'm also having issues with destroy when trying REST API, when running http://localhost:1337/user/destoy/12:7 SQL statement runs:
DELETE VERTEX WHERE @rid in [#12:7]
Encountered "
which is not accepted by OrientDB 2.1, it would accept: DELETE VERTEX #12:7
Hi @p1lare, a couple of things: Oriento/OrientJS do not fully support the REST API, check orientechnologies/orientjs#28 and sails-orientdb does not support OrientDB v2.1, check #52.
Currently
.destroy()
is doing aSELECT
query to provide the results of theDELETE EDGE/VERTEX
query, which is not ideal. Once orientechnologies/orientdb#3595 is complete and released (OrientDB v2.1) change this behaviour to use theRETURN <returning>
and perform only 1 operation instead of 2.RETURN <returning>
when deleting vertex/edge