noticed that when you call db.query("table").filter(...).unique() with row-level-security and there are no results, we call the row-level-security read predicate on null, which doesn't match the typescript types and isn't expected. Instead, we should only call the predicate on non-null documents.
noticed that when you call
db.query("table").filter(...).unique()
with row-level-security and there are no results, we call the row-level-securityread
predicate onnull
, which doesn't match the typescript types and isn't expected. Instead, we should only call the predicate on non-null documents.