-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Perform validation check on updating nested fields #398
Comments
Hey @tokr-bit , Thanks for reporting this! I'm wondering if #394 will also fix this issue? cc @sdobbelaere |
Hey, |
@tokr-bit I would appreciate this fix. I feel this would be something I'd run into myself as well during my project. |
I'm not sure if this is why the issue was left open (since #405 was meant to fix it?) but there is an additional issue even with the fix where integrity errors raised by the creation happen before the call to
|
Summary
If a nested field is updated via the parent field, a validation on the nested field should be performed, if some validators are provided on the django field.
Feature Request Type
Description
Assuming we have a Parent model with some nested fields:
We create some types and a create mutation:
No matter which value is passed to the URL Field of the
Child
, the validator is not executed.Solution
Reason is that the
update_m2m
method in resolvers.py does not execute afull_clean
on the respective object.Upvote & Fund
The text was updated successfully, but these errors were encountered: