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
Add @upsert
directive and nested mutation operations to create or update a model regardless whether it exists
#1005
Merged
spawnia
merged 32 commits into
nuwave:master
from
joskfg:feature/add-upsert-to-nested-mutations
Oct 15, 2019
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
2c5caf4
Partial upsert implementation with BelongToMany test
1ca2119
Fix StyleCI
c5447c4
Fix PHPDoc
2e44268
Add info to unreleased section of the changelog
6c5f541
BelongsToMany upsert ready
24da674
BelongsTo upsert ready
0ae0d53
Add HasMany to upsert
f2d599b
Fix StyleCI
583b239
Add HasOne to upsert
feace74
Add missing tests
68a2e5d
Add MorphToMany to upsert
a075834
Add MorphOne to upsert
80bc88f
Add MorphToMany to upsert
7da6681
Add MorphTo to upsert
dc7d87b
Add documentation
869622b
Add documentation to v4.4
7456e8c
Update CHANGELOG.md
joskfg f579c05
Remove @upsert from 4.4.0 docs
e307b58
Fix StyleCI
b48d1a6
Refactor upsert and update
87eec45
Refactor Create/Update/Upsert directives to DRY
5e4d232
Fix StyleCI
38ea803
Upgade documentation to be more clear
1d12f1b
Improve executeUpsert check
ea87ded
Fix StyleCI
8d78822
Fix issue when creating without autoincrement key
5be34ff
Remove unneeded code from directives
spawnia 85dcd3a
Reorder and comment the MutationExecutor
spawnia 230b95d
Some wording in the docs
spawnia 174464f
Fix syntax
spawnia cc9fb65
Force different ids in upsert to check that it actually uses it
8a53ace
Update CHANGELOG.md
spawnia File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer this indentation