-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explain the behaviour of forEach #1261
Comments
What is it you're actually trying to do?
And the examples you're giving are not write queries. (I could have sworn that |
If you run something like
it will output
That result was formed by combining together three different write result objects. The It looks like it doesn't validate that the query result is necessarily a write result, it just evaluates the subqueries. Hence
It will only complain if it gets a value it refuses to merge together, like a number. I don't know why you're getting "var_541". I don't get that when I run the query. That's definitely a bug, really a complete mystery; |
It definitely could be better documented. |
Could I say again how freaky that var_541 thing is? I can't reproduce it in 2.4 or before. What browser are you running? Could it be its JavaScript engine? |
It's the RethinkDB 2.4 Data Explorer |
That's because you wrote Okay. In the screenshot, I guess you ran |
Just to get back on track:
This is what's missing from the docs. |
I'm not trying to do anything with it, I really tried to discover what the result type was. I have an issue tracking all RethinkDB types (rethinkdb/rethinkdb-java#18), and |
Apparently, forEach merge and sums all objects given to them? This is undocumented on the docs.
The text was updated successfully, but these errors were encountered: