drizzle-team / drizzle-team/drizzle-orm

[BUG]: sqlite-proxy - findMany query field mapping discrepancy in schema

Open
#1,534 7 comments 0 reactions 1 assignee Claimed by @Angelelz View on GitHub
bug db/sqlite driver/http-proxy priority
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.

![](https://github.com/drizzle-team/drizzle-orm/assets/27436007/9974f45a-83f0-42bd-914c-783307fcc392)

### 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.