Skip to content

docs(swift): clarify partial mutation result with relationships - #8626

Merged
VarshithaPamisetty merged 1 commit into
mainfrom
docs/swift-mutation-partial-relationship
Sep 25, 2026
Merged

VarshithaPamisetty merged 1 commit into
mainfrom
docs/swift-mutation-partial-relationship

Conversation

@VarshithaPamisetty

Copy link
Copy Markdown
Contributor

Description of changes:

A Swift mutation on a model with a relationship can return .failure(.partial(data, errors)) even though the item was created, because AppSync redacts the related object when different authorization rules apply to the related model. Developers read the failure as the write not happening, which is how this keeps getting reported.

This adds a note to the Swift section of the mutate data page saying the created item is in the associated value, including the id of the related record, so the relationship can be read with a separate query. The redaction itself is already documented on the Relationships page; this adds the Swift-specific consequence where developers hit it.

Checks

  • yarn build succeeds with no errors

Refs #4127, #3913

@VarshithaPamisetty
VarshithaPamisetty marked this pull request as ready for review September 25, 2026 19:29
@VarshithaPamisetty
VarshithaPamisetty requested a review from a team as a code owner September 25, 2026 19:29
@VarshithaPamisetty
VarshithaPamisetty merged commit 488dafe into main Sep 25, 2026
13 checks passed
@VarshithaPamisetty
VarshithaPamisetty deleted the docs/swift-mutation-partial-relationship branch September 25, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants