Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Fluent API in read operations #36

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

casey-chow
Copy link
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
1 participant