Open
Description
What's the best way to validate a query like this? For example, to ensure id > 0
r.table('test').insert([{id: 1}, {id: -1}]) // Query
r.table('test').insert(RP.check(arr => arr.every(e => e.id > 0))) // Whitelist entry
Whitelisting like this fails, I think because arr is a parsed query as opposed to a js array. I'm not sure how to loop through it.
Metadata
Metadata
Assignees
Labels
No labels