jabh
jabh
DTDrizzle Team
Created by jabh on 12/4/2023 in #help
bun:sqlite FindFirst returns an object with all values undefined
Running FindFirst gives me an object with the proper keys but all values are undefined. Running FindMany with a limit of 1 gives me the correct output but in an array. Enabling logger gives this output for both findFirst and findMany with limit 1 select "id", "name", "location" from "company" limit ? -- params: [1] I've narrowed it down by doing db.query.company.findFirst().prepare(); with this i can then do both .get() and .all(), it seems using get gives me the broken output while doing all give me the array with correct output. Any ideas what is happening here and why?
8 replies