-
-
Notifications
You must be signed in to change notification settings - Fork 125
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 multi-level nested create/update with model full_clean()
#659
Open
philipstarkey
wants to merge
7
commits into
strawberry-graphql:main
Choose a base branch
from
BrightpathProgress:philipstarkey/603-nested-fields
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Support multi-level nested create/update with model full_clean()
#659
philipstarkey
wants to merge
7
commits into
strawberry-graphql:main
from
BrightpathProgress:philipstarkey/603-nested-fields
Commits on Dec 10, 2024
-
Add support for nested creation/update in mutations. This also has th…
…e benefit of consistently calling `full_clean()` before creating related instances. This does remove the `get_or_create()` calls and instead uses `create` only. The expectation here is that `key_attr` could and should be used to indicate what field should be used as the unique identifier, and not something hard coded that could have unintended side effects when creating related instances that don't have unique constraints and expect new instances to always be created.
Configuration menu - View commit details
-
Copy full SHA for 58d9df2 - Browse repository at this point
Copy the full SHA 58d9df2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 21e86d0 - Browse repository at this point
Copy the full SHA 21e86d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fbd723 - Browse repository at this point
Copy the full SHA 7fbd723View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05412b8 - Browse repository at this point
Copy the full SHA 05412b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e16d70e - Browse repository at this point
Copy the full SHA e16d70eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ecee136 - Browse repository at this point
Copy the full SHA ecee136View commit details -
Configuration menu - View commit details
-
Copy full SHA for b73c0fb - Browse repository at this point
Copy the full SHA b73c0fbView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.