findFirst should return optional object
Hi, I noticed that in drizzle 0.27, when I execute findFirst, it returns an optional object (could be undefined). However, in drizzle 0.29, it seems that findFirst will always return object (without the undefined part).
I think findFirst should always return optional object. Am I missing something here? Thanks.


2 Replies
This API hasn't changed. This is estrange. What driver do you use?
Can you also check you tsconfig.json, What is the value of
skipLibCheck
?Hi, thanks for the response. I just discovered that strictNullChecks should be true. My bad 😥 . Everything is good now! Much appreciated!