typedb / typedb-driver-nodejs

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

Query iterator only throws exeption once #204

Closed flyingsilverfin closed 2 years ago

flyingsilverfin commented 2 years ago

What is the goal of this PR?

Revert previous changes from https://github.com/vaticle/typedb-client-nodejs/pull/202, which made query queues and iterators throw the same error idempotently. However, this goes counter to standard usage of iterators and queues, which are not meant to behave idempotently (each item is only returned once, and if they have an error they should no longer be used).

What are the changes implemented in this PR?

Note: mirrors change from https://github.com/vaticle/typedb-client-java/pull/372