orientechnologies / orientjs

The official fast, lightweight node.js client for OrientDB
http://orientdb.com
Other
326 stars 68 forks source link

Create Edge query command hangs with lightweight edges #395

Closed tomscreen closed 5 years ago

tomscreen commented 5 years ago

Using version 3.0.7 of orientjs library to interact with version 3.0.23 of OrientDB.

Problem manifests as a "hung promise" when executing a 'create edge' query on a session against the database. e.g.... (code for illustration)

let query = CREATE EDGE rel FROM #57:0 to #49:0 return session.command(query).all().then(function(res) { ... })

The code never gets into the next 'then' function.

Problem only occurs when database is set to use lightweight edges.

wolf4ood commented 5 years ago

Hi @tomscreen

i've managed to reproduce it and identify the issue.

I'm working on a fix. Thanks

wolf4ood commented 5 years ago

Hi @tomscreen

i've just pushed a fix. It will be available in the next release of OrientJS

Thanks