Skip to content
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 directives to mutate multiple models at once #2578

Merged
merged 11 commits into from
Jul 2, 2024
Merged

Conversation

spawnia
Copy link
Collaborator

@spawnia spawnia commented Jul 1, 2024

Resolves #2091

  • Added or updated tests
  • Documented user facing changes
  • Updated CHANGELOG.md

Changes

Adds the directives @createMany, @updateMany and @upsertMany.
They correspond to @create, @update and @upsert, but operate on multiple models at once.

Breaking changes

No explitly public API changed, but MutationExecutorDirective splits into OneModelMutationDirective and ManyModelMutationDirective.

@spawnia spawnia added the enhancement A feature or improvement label Jul 1, 2024
CHANGELOG.md Show resolved Hide resolved
@spawnia spawnia marked this pull request as ready for review July 2, 2024 07:58
@spawnia spawnia merged commit 29b99f7 into master Jul 2, 2024
40 of 41 checks passed
@spawnia spawnia deleted the mutate-many branch July 2, 2024 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mutate multiple models at once
2 participants