I want to do something like:
var tab = r.db("test").table("test");
all =[
tab.getAll('1').fitler({'hidden': false}).limit(1),
tab.getAll('2').fitler('hidden': false}).limit(1),
tab.getAll('3').fitler('hidden': false}).limit(1),
]
But when running this query I'm getting:
Expected type DATUM but found SELECTION:
In general, the "Expected type DATUM but found SELECTION" error can be solved by adding
.coerceTo('array')
:But in this specific case, you can replace
.limit(1)
with.nth(0)
: