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

fix(qe) Don't use native upserts with nested selection #3377

Merged
merged 1 commit into from Nov 9, 2022

Conversation

garrensmith
Copy link
Contributor

If an upsert uses a selection with nested models in the response then do not use native upserts

This fixes prisma/prisma#16196

@garrensmith garrensmith added this to the 4.7.0 milestone Nov 9, 2022
Copy link
Member

@Weakky Weakky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

@tomhoule tomhoule mentioned this pull request Nov 9, 2022
@Jolg42
Copy link
Member

Jolg42 commented Nov 9, 2022

Merging as I assume we were waiting for passing tests, and all are passing now. So we can wake up with a freshly baked dev version tomorrow.

@Jolg42 Jolg42 merged commit 379f9d3 into main Nov 9, 2022
@Jolg42 Jolg42 deleted the fix/native-updates branch November 9, 2022 22:07
Jolg42 pushed a commit that referenced this pull request Nov 9, 2022
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.

upsert() with nested selection errors with called Option::unwrap() on a None value in 4.6.0
3 participants