Closed
Description
When running all the examples at once, as described in the README, or when running query-builder.js alone, execution dies near the end of query-builder.js:
mwooldri$ node examples/query-builder.js
Query documents with the Query Builder
Mayotte at /countries/mf.json
Seychelles at /countries/se.json
Morocco at /countries/mo.json
Burkina Faso at /countries/uv.json
Algeria at /countries/ag.json
Djibouti at /countries/dj.json
Cote d'Ivoire at /countries/iv.json
Mauritania at /countries/mr.json
Guinea at /countries/gv.json
Mali at /countries/ml.json
mwooldri$
It should end like this:
...
Mali at /countries/ml.json
Niger at /countries/ng.json
done
mwooldri$
All other examples complete successfully when run by themselves.
When query-builder.js is edited to use a promise instead of a stream (similar to how query-by-example.js uses a promise), the script completes successfully. So it appears to be an issue with streams in query-builder.js.
I'm running Node.js v6.5.0 and npm v3.10.3.