-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Nullable fields generating broken field implementations #23
Labels
bug
Something isn't working
Comments
I checkedout a new branch to reproduce and will fix this. |
For this bug fix, I don't think the generated input object type should be However this is a breaking change and a separate test has been created for this issue. It will be fixed in the |
medz
added a commit
that referenced
this issue
Sep 20, 2022
…n-field-implementations Fixed #23 & input object types without `PrismaUnion` wrapper.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While running the
User
/Post
example in the README, I've encountered a problem with the initial generated code.It seems that nullable fields (e.g.,
name String?
) generate the following Dart code:Which breaks, because the class definition for
PrismaUnion
accepts 2 type parametersYet we've provided three
The text was updated successfully, but these errors were encountered: