types / rethinkdb

Types for https://github.com/rethinkdb/rethinkdb
MIT License
11 stars 6 forks source link

zip() After non-eqJoin Commands #16

Open ChrisTalman opened 6 years ago

ChrisTalman commented 6 years ago

The RethinkDB documentation suggests that the following query is legal:

r
    .table('players')
    .eqJoin('gameId', r.table('games'))
    .without({right: 'id'})
    .zip()

However, the current type definition does not allow this, as commands like without() return an RStream, rather than an RStreamJoin.

Is there something we can do to rectify this? I've tried to look into the type definition to resolve this, but I haven't been able to find an approach so far.