typedb / typedb-driver-nodejs

TypeDB Driver for Node.js
https://typedb.com
Apache License 2.0
32 stars 21 forks source link

Store error on transaction stream and clean up completed query state #202

Closed flyingsilverfin closed 2 years ago

flyingsilverfin commented 2 years ago

What is the goal of this PR?

Multiplexed query streams over the transaction stream are cleaned up when complete. We also store any exceptions received against the transaction stream (as well as query streams) in order to propagate the error to any future transaction operations, not just open query streams.

What are the changes implemented in this PR?