You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 5, 2018. It is now read-only.
I may be completely off on this, but essentially I am trying to pipe the results of a view on to a stream. Using the example code from the docs, here is what I do:
I expected to see the filtered results of that view in /tmp/mydata.json, but instead I get the full view. Executing the same call with a callback handler to write out the data works. Is streaming of views not supposed to work like this?
The text was updated successfully, but these errors were encountered:
Never mind, I found the issue. I had two consecutive calls to view with the same parameters object, and it seems like the original object gets modified by the view call, essentially kicking out the key property. A bit of an unexpected side effect. You may want to consider creating a clone of the parameters object before modifying.
I may be completely off on this, but essentially I am trying to pipe the results of a view on to a stream. Using the example code from the docs, here is what I do:
alice.view('characters', 'crazy_ones', someKeys).pipe(fs.createWriteStream('/tmp/mydata.json'))
I expected to see the filtered results of that view in /tmp/mydata.json, but instead I get the full view. Executing the same call with a callback handler to write out the data works. Is streaming of views not supposed to work like this?
The text was updated successfully, but these errors were encountered: