strawberry-graphql / strawberry-django

Strawberry GraphQL Django extension
MIT License
394 stars 115 forks source link

fix: Update related objects with unique_together #362

Closed zvyn closed 10 months ago

zvyn commented 10 months ago

Description

Resolves the issue described in #360: Support updating related objects with unique_together on the foreign key where the data identifies a single object in the database.

Types of Changes

Issues Fixed or Closed by This PR

Checklist

codecov-commenter commented 10 months ago

Codecov Report

Patch coverage: 66.66% and no project coverage change.

Comparison is base (4cde249) 87.99% compared to head (9f01759) 87.99%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #362 +/- ## ======================================= Coverage 87.99% 87.99% ======================================= Files 33 33 Lines 2940 2941 +1 ======================================= + Hits 2587 2588 +1 Misses 353 353 ``` | [Files Changed](https://app.codecov.io/gh/strawberry-graphql/strawberry-graphql-django/pull/362?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=strawberry-graphql) | Coverage Δ | | |---|---|---| | [strawberry\_django/mutations/resolvers.py](https://app.codecov.io/gh/strawberry-graphql/strawberry-graphql-django/pull/362?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=strawberry-graphql#diff-c3RyYXdiZXJyeV9kamFuZ28vbXV0YXRpb25zL3Jlc29sdmVycy5weQ==) | `87.05% <66.66%> (+0.05%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.