aleclarson / rethinkdb-mock

In-memory RethinkDB
7 stars 3 forks source link

Query context is missing from sub-queries #9

Closed aleclarson closed 7 years ago

aleclarson commented 7 years ago

Example:

db.table('users').update({
  friendCount: r.row('friendCount').add(1).default(1)
})

In the above scenario, if a row has an undefined friendCount, the default value will not be used since the query context is non-existent when query._run() is called by the parent query.

aleclarson commented 7 years ago

This should be fixed, but there may be some edge cases.