Nodejs情况:
r.db('users').get('e@mai.l').without(['password']).run()
如果用户不存在 rethinkdb 会抛出错误
-- 2014-01-22T13:26:04.720Z [20163] [ ctx error ] --
RqlRuntimeError: Cannot perform without on a non-object non-sequence `null`. in:
r.table('users').get('e@mai.l').without(['password'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
问题:
- 为什么 Rethink 会抛出错误而不是在回调的第一个参数中返回它们?
- 为什么它仍然会抛出错误?它不能最终返回 null 并完成请求吗?