Skip to content

Support Fluent API in read operations#36

Open
casey-chow wants to merge 2 commits intoprisma:mainfrom
casey-chow:casey/fluent-api
Open

Support Fluent API in read operations#36
casey-chow wants to merge 2 commits intoprisma:mainfrom
casey-chow:casey/fluent-api

Conversation

@casey-chow
Copy link
Copy Markdown
Contributor

Closes #12 with the solution approach described in #12 (comment). I further productionized it to make sure it handled arrays correctly, and added some tests to make sure of that fact.

This, of course, is a workaround at best and a terrible hack at worst. That said, the lack of support for Fluent API is significantly hampering adoption of client extensions, and this behavior is backed with an integration test, so we will get warning if Prisma Client breaks this behavior. I would much prefer resolution of prisma/prisma#24653 in the long term.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fluent API returns incorrect object structure with read replica

2 participants