This error appeared while using exponent CLI to build an standalone (shell) app:
[exp] API Response Error: Cannot convert `undefined` with r.expr() in:
r.db("prod").table("credentials").getAll(undefined, {
^^^^^^^^^ ^
index: "username"
^^^^^^^^^^^^^^^^^
})