T
TanStack7d ago
genetic-orange

Default where clause on queries

Is it possible to set a default where clause on all queries? My use-case is scoping all queries to the current account_id to avoid users with multiple accounts from having data leak between.
2 Replies
multiple-amethyst
multiple-amethyst7d ago
I think this is likely something best set up in your collections, so only fetch/sync the data for that account.
genetic-orange
genetic-orangeOP6d ago
Ah okay I'll take a look. Appreciate the help!

Did you find this page helpful?