I am receiving this error:
Argument of type '(string | RSpecial<"ARGS">)[]' is not assignable to parameter of type 'KeyType'. Type '(string | RSpecial<"ARGS">)[]' is not assignable to type 'RSpecial<"ARGS">'. Property 'type' is missing in type '(string | RSpecial<"ARGS">)[]'.
It's produced by code which looks similar to the following:
import r from 'rethinkdb';
const array =
[
'abc',
'def',
'hij'
];
const string = 'klm';
r
.table('name')
.getAll
(
[
r.args(array),
string
],
{
index: 'key1_key2'
}
)
The compiled code runs correctly without error from the RethinkDB library.
The problem seems to be with r.args in the context of a compound index in a getAll query.
I attempted to look through rethinkdb.d.ts to find the cause of the issue, but have been unsuccessful so far.
If anyone can lend a hand in resolving this, that'd be much appreciated.
I am receiving this error:
It's produced by code which looks similar to the following:
The compiled code runs correctly without error from the RethinkDB library.
The problem seems to be with
r.argsin the context of a compound index in agetAllquery.I attempted to look through
rethinkdb.d.tsto find the cause of the issue, but have been unsuccessful so far.If anyone can lend a hand in resolving this, that'd be much appreciated.