DT
Drizzle Team•13mo ago
nqhtrung

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.
No description
No description
2 Replies
Angelelz
Angelelz•13mo ago
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?
nqhtrung
nqhtrungOP•13mo ago
Hi, thanks for the response. I just discovered that strictNullChecks should be true. My bad 😥 . Everything is good now! Much appreciated!
Want results from more Discord servers?
Add your server