Proper way to infer update model?
Currently I infer update model by partial of InferInsertModel which work fine, but in case of updating value with sql`` this error happended.
3 Replies
If you check the type of Drizzle's sql function you'll see, this:
You can see that you will accept
sql<T>
so you can do this:
I tried, but same result as InferInsertModel doesn't accept sql<T> type
Can you post the actual code here