where clause in drizzle insert
can anyone tell why it's giving typescript error and how can i resolve it
error:
where clause doesn't exists
i want to do this query with single query
4 Replies
i am willing to help if you provide more information:
please send the table schema, the typescript error you are getting and where it is showing up, and a explanation of what you are attempting to do with the query
Instead of this where clause, another possibility could also be a unique index?
i want do give below thing in one query:-
if (condition)
then don't insert in table
else
insert it into table
schema
error is saying you cann't add where clause
currently i am doing achiving this by
oh I see
yea I would try to avoid the nested db calls
no reason to not seperate the reading data then writing data
other than to make things more confusing