drizzle-team / drizzle-team/drizzle-orm
[BUG]: sqlite-proxy - findMany query field mapping discrepancy in schema
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### What version of `drizzle-orm` are you using?
0.29.0
### What version of `drizzle-kit` are you using?
_No response_
### Describe the Bug
The `findMany` function, when invoked, retrieves records from the database but does not map the fields of these records in accordance with the schema.

### Expected behavior
When executing a `findMany` query, the function is expected to retrieve multiple records from the specified table and accurately map these records' fields according to the structure defined in the schema. This mapping should correctly align database fields with their corresponding schema definitions, ensuring that the retrieved data is formatted and structured as per the model's design.
### Environment & setup
OS: Ubuntu 20.04.2 LTS x86_64
Kernel: 6.2.0-1018-gcp
CPU: AMD EPYC 7B12 (8) @ 2.249GHz
https://replit.com/@hidemire/drizzle-sqlite-proxy
Feel free to ask additional questions.
Contributor guide
Assessment
This issue has not been assessed yet.