Closed thelinuxlich closed 8 years ago
@thelinuxlich I've seen this error before when accidentally attempting to serialize a ReQL query to JSON. Certain implementations call the toJSON
method when it is defined as a way to override default serialization.
See the MDN docs on this.
But then it wouldn't be a rethinkdbdash error, right?
It would be because you cannot serialize a ReQL term in JSON.
@neumino I seem to be running into similar issue as @thelinuxlich
This is what i had been trying to achieve. And, I am using thinky.r for this. I am trying to generate change feed for new documents in the Table, and end up with the same ReqlDriverError error. I did try with both run() and execute(). r.table('table').changes({includeTypes: true}) .filter(r.row('type').eq('add'))('new_val').execute() .then(function(feed) { feed.each(function(err, change) { if (err) { console.log(err.toString()); console.log(err.stack); } else { console.log(change); } });
I did manage to get what i am after with the rethinkdb javascript driver using the code below. Yeah, without this error r.table('table').changes({includeTypes: true}) .filter(r.row('type').eq('add'))('new_val').execute() .then(function(feed) { feed.each(function(err, change) { if (err) { console.log(err.toString()); console.log(err.stack); } else { console.log(change); } }); })
Do you think, this could be some issue with rethinkdbdash?