You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a nested object is updated with a value that raises ValidationError, the field name is shown in the OperationInfo is shown that lead tot his error. It might be advantageous to see the actual nested path.
Feature Request Type
Core functionality
Alteration (enhancement/optimization) of existing feature(s)
Summary
This is based on the Feature Request in #398.
If a nested object is updated with a value that raises
ValidationError
, the field name is shown in the OperationInfo is shown that lead tot his error. It might be advantageous to see the actual nested path.Feature Request Type
Description
Assume we have a parent with a nested field:
with some types and mutations
Assume the following mutation:
Desired behavior:
field
should beParent.children.url
.Actual behavior:
field
isurl
Solution
Currently, we catch
ValidationError
s that are raised by django in_get_validation_errors
(https://github.com/strawberry-graphql/strawberry-graphql-django/blob/main/strawberry_django/mutations/fields.py#L59). We would need some kind ofroot
parameter that allows us to backtrace this field.Do you have any suggestions on that?
Upvote & Fund
The text was updated successfully, but these errors were encountered: