Help with conditional parameters in a .where () statement please
I've got URL searchParams for category, difficulty and not (which is a record to exclude). The parameters are optional and are used as filters in my question bank app.
I'm struggling to build a drizzle query that conditionally supports the presence of these parameters and I wonder if someone can help.
This is what I have that doesn't work. Note thanks to @Mykhailo for the bit
I'm struggling to build a drizzle query that conditionally supports the presence of these parameters and I wonder if someone can help.
This is what I have that doesn't work. Note thanks to @Mykhailo for the bit