Are conditional .eq checks possible?
Is it possible to conditionally check for something in a table?
For intance:
I want to run
on one function call, but then:
Can I toggle on/off that last eq or do I need to define a separate function?
2 Replies
You can build up the query step by step:
The query won't be executed until you await it.
Docs:
https://supabase.com/docs/reference/javascript/using-filters#conditional-chaining
Using Filters | Supabase
Filters can be used on select(), update(), and delete() queries.
awesome thank you!